mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 06:15:49 +00:00
f19bab76bd
The dynamic library makes it easy to verify that there are no linker errors when building the object store, while the static library is easier for a binding to consume. This also tweaks how the library targets are defined to ensure that other CMake projects that pull in the libraries automatically get the right include paths and link to the appropriate libraries.
20 lines
467 B
CMake
20 lines
467 B
CMake
cmake_minimum_required(VERSION 3.2.0)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug CACHE STRING "")
|
|
project(realm-object-store)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
|
|
|
|
include(CodeCoverage)
|
|
include(CompilerFlags)
|
|
include(Sanitizers)
|
|
|
|
include(RealmCore)
|
|
set(REALM_CORE_VERSION "0.100.1" CACHE STRING "")
|
|
use_realm_core(${REALM_CORE_VERSION})
|
|
|
|
set(PEGTL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/pegtl)
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(tests)
|