Skip to content

Commit

Permalink
Add EE build option to CMake project
Browse files Browse the repository at this point in the history
  • Loading branch information
borrrden committed Feb 4, 2020
1 parent 901b12f commit 40ed931
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cblite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ project (cblite)
include("../cmake/common_setup.cmake")

set(LITECORE ${PROJECT_SOURCE_DIR}/../vendor/couchbase-lite-core/)
option(BUILD_ENTERPRISE "Set whether or not to build enterprise edition" OFF)

common_setup()
get_platform_libs(PLATFORM_LIBS)

Expand Down Expand Up @@ -50,6 +52,10 @@ target_include_directories(
)

target_compile_definitions(cblite PRIVATE -DCMAKE)
if(BUILD_ENTERPRISE)
target_compile_definitions(cblite PRIVATE -DCOUCHBASE_ENTERPRISE)
endif()

target_link_libraries(cblite ${LITECORE_LIBRARIES_PRIVATE} LiteCoreREST_Static ${PLATFORM_LIBS})
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
target_link_libraries(cblite ${ICU4C_COMMON} ${ICU4C_I18N})
Expand Down

0 comments on commit 40ed931

Please sign in to comment.