realm-js/src/CMakeLists.txt

49 lines
1.2 KiB
CMake
Raw Normal View History

include_directories(impl)
set(SOURCES
index_set.cpp
list.cpp
object_schema.cpp
object_store.cpp
results.cpp
schema.cpp
shared_realm.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
impl/cached_realm_base.hpp
2016-01-21 10:06:51 -08:00
impl/transact_log_handler.hpp
parser/parser.hpp
parser/query_builder.hpp)
if(APPLE)
include_directories(impl/apple)
2016-01-21 10:06:51 -08:00
list(APPEND SOURCES
impl/apple/cached_realm.cpp
2016-01-21 10:06:51 -08:00
impl/apple/external_commit_helper.cpp)
list(APPEND HEADERS
impl/apple/cached_realm.hpp
2016-01-21 10:06:51 -08:00
impl/apple/external_commit_helper.hpp)
find_library(CF_LIBRARY CoreFoundation)
else()
include_directories(impl/generic)
list(APPEND SOURCES
impl/generic/external_commit_helper.cpp)
list(APPEND HEADERS
impl/generic/cached_realm.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})