2016-01-06 15:52:12 -08:00
|
|
|
set(SOURCES
|
|
|
|
index_set.cpp
|
|
|
|
list.cpp
|
|
|
|
object_schema.cpp
|
|
|
|
object_store.cpp
|
|
|
|
results.cpp
|
|
|
|
schema.cpp
|
|
|
|
shared_realm.cpp
|
2015-10-30 10:39:20 -07:00
|
|
|
impl/async_query.cpp
|
2015-08-19 12:27:12 -07:00
|
|
|
impl/realm_coordinator.cpp
|
2016-01-06 15:52:12 -08:00
|
|
|
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
|
2016-01-25 10:25:28 -08:00
|
|
|
impl/external_commit_helper.hpp
|
2016-01-21 10:06:51 -08:00
|
|
|
impl/transact_log_handler.hpp
|
|
|
|
parser/parser.hpp
|
2016-02-22 18:19:26 -08:00
|
|
|
parser/query_builder.hpp
|
|
|
|
util/atomic_shared_ptr.hpp)
|
2016-01-21 10:06:51 -08:00
|
|
|
|
2016-01-06 15:52:12 -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)
|
2016-01-06 15:52:12 -08:00
|
|
|
find_library(CF_LIBRARY CoreFoundation)
|
2015-12-03 14:19:24 -08:00
|
|
|
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
|
2015-12-03 14:19:24 -08:00
|
|
|
impl/generic/external_commit_helper.hpp)
|
2016-01-06 15:52:12 -08:00
|
|
|
endif()
|
|
|
|
|
2016-01-21 10:06:51 -08:00
|
|
|
add_library(realm-object-store SHARED ${SOURCES} ${HEADERS})
|
2016-01-06 15:52:12 -08:00
|
|
|
target_link_libraries(realm-object-store realm ${CF_LIBRARY})
|