realm-js/src/CMakeLists.txt

49 lines
1.2 KiB
CMake
Raw Normal View History

set(SOURCES
index_set.cpp
list.cpp
object_schema.cpp
object_store.cpp
results.cpp
schema.cpp
shared_realm.cpp
impl/async_query.cpp
impl/realm_coordinator.cpp
impl/transact_log_handler.cpp
parser/parser.cpp
parser/query_builder.cpp)
2016-01-21 10:06:51 -08:00
set(HEADERS
index_set.hpp
list.hpp
object_schema.hpp
object_store.hpp
results.hpp
schema.hpp
shared_realm.hpp
2016-02-23 14:31:59 -08:00
impl/weak_realm_notifier.hpp
impl/weak_realm_notifier_base.hpp
impl/external_commit_helper.hpp
2016-01-21 10:06:51 -08:00
impl/transact_log_handler.hpp
parser/parser.hpp
parser/query_builder.hpp
util/atomic_shared_ptr.hpp)
2016-01-21 10:06:51 -08:00
if(APPLE)
2016-01-21 10:06:51 -08:00
list(APPEND SOURCES
2016-02-23 14:31:59 -08:00
impl/apple/weak_realm_notifier.cpp
2016-01-21 10:06:51 -08:00
impl/apple/external_commit_helper.cpp)
list(APPEND HEADERS
2016-02-23 14:31:59 -08:00
impl/apple/weak_realm_notifier.hpp
2016-01-21 10:06:51 -08:00
impl/apple/external_commit_helper.hpp)
find_library(CF_LIBRARY CoreFoundation)
else()
list(APPEND SOURCES
impl/generic/external_commit_helper.cpp)
list(APPEND HEADERS
2016-02-23 14:31:59 -08:00
impl/generic/weak_realm_notifier.hpp
impl/generic/external_commit_helper.hpp)
endif()
2016-01-21 10:06:51 -08:00
add_library(realm-object-store SHARED ${SOURCES} ${HEADERS})
target_link_libraries(realm-object-store realm ${CF_LIBRARY})