|
|
|
@ -27,8 +27,6 @@ option(WITH_COVERAGE "generate coverage data" OFF)
|
|
|
|
|
option(USE_SHELLHOOKS "enable shell hooks on compile time (dangerous)" OFF)
|
|
|
|
|
option(WARNINGS_AS_ERRORS "treat all warnings as errors. turn off for development, on for release" OFF)
|
|
|
|
|
option(TRACY_ROOT "include tracy profiler source" OFF)
|
|
|
|
|
option(VENDOR_LIBSODIUM "use vendored libsodium" OFF)
|
|
|
|
|
option(VENDOR_FILESYSTEM "use vendored fs::filesystem" ON)
|
|
|
|
|
option(WITH_TESTS "build unit tests" ON)
|
|
|
|
|
option(WITH_SYSTEMD "enable systemd integration for sd_notify" OFF)
|
|
|
|
|
|
|
|
|
@ -255,15 +253,10 @@ if(SUBMODULE_CHECK)
|
|
|
|
|
check_submodule(external/nlohmann)
|
|
|
|
|
check_submodule(external/googletest)
|
|
|
|
|
check_submodule(external/cxxopts)
|
|
|
|
|
check_submodule(external/ghc-filesystem)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(VENDOR_FILESYSTEM)
|
|
|
|
|
include_directories("${CMAKE_CURRENT_LIST_DIR}/vendor/ghc-filesystem/include")
|
|
|
|
|
add_definitions(-DLOKINET_USE_GHC_FILESYSTEM)
|
|
|
|
|
message(STATUS "Using vendored ghc::filesystem")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(WITH_TESTS)
|
|
|
|
|
add_subdirectory(external/googletest EXCLUDE_FROM_ALL)
|
|
|
|
|
endif()
|
|
|
|
@ -272,6 +265,7 @@ add_subdirectory(external/abseil-cpp EXCLUDE_FROM_ALL)
|
|
|
|
|
set(JSON_BuildTests OFF CACHE INTERNAL "")
|
|
|
|
|
add_subdirectory(external/nlohmann EXCLUDE_FROM_ALL)
|
|
|
|
|
add_subdirectory(external/cxxopts)
|
|
|
|
|
add_subdirectory(external/ghc-filesystem)
|
|
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
|
list(APPEND LIBS log)
|
|
|
|
|