mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-10 13:47:05 +00:00
By default, Linux uses a locally-built version of core that is prepared in an independent working copy of the realm-core git repository. Support is also added for using an existing local build of core on both OS X and Linux . This can be done by running `cmake -DREALM_CORE_VERSION=/path/to/realm-core`. The generated build system will invoke `sh build.sh build` within the given directory prior to building the object store.
17 lines
423 B
CMake
17 lines
423 B
CMake
set(CMAKE_BUILD_TYPE Debug CACHE STRING "")
|
|
project(realm-object-store)
|
|
|
|
cmake_minimum_required(VERSION 3.2.0)
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
|
|
|
|
include(CompilerFlags)
|
|
|
|
include(RealmCore)
|
|
set(REALM_CORE_VERSION "0.96.2" CACHE STRING "")
|
|
use_realm_core(${REALM_CORE_VERSION})
|
|
|
|
include_directories(${REALM_CORE_INCLUDE_DIR} src external/pegtl)
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(tests)
|