mirror of https://github.com/oxen-io/lokinet
Make nlohmann::json part of the build
This commit is contained in:
parent
1b331ea6f7
commit
93399fdbb4
|
@ -20,7 +20,7 @@ option(WITH_COVERAGE "generate coverage data")
|
|||
|
||||
# Basic definitions
|
||||
get_filename_component(CORE_INCLUDE include ABSOLUTE)
|
||||
get_filename_component(ABYSS_INCLUDE "${CMAKE_CURRENT_LIST_DIR}/${ABYSS}/include" ABSOLUTE CACHE)
|
||||
get_filename_component(ABYSS_INCLUDE "${CMAKE_CURRENT_LIST_DIR}/${ABYSS}/include" ABSOLUTE)
|
||||
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
|
@ -54,6 +54,8 @@ if (WIN32 AND NOT STATIC_LINK_RUNTIME)
|
|||
#set(STATIC_LINK_RUNTIME ON)
|
||||
endif(WIN32 AND NOT STATIC_LINK_RUNTIME)
|
||||
|
||||
add_subdirectory(vendor/nlohmann)
|
||||
|
||||
# still need the headers unconditionally
|
||||
set(ABSEIL_DIR vendor/abseil-cpp)
|
||||
include_directories(${ABSEIL_DIR})
|
||||
|
|
|
@ -33,8 +33,8 @@ set(LIB_UTIL_SRC
|
|||
)
|
||||
|
||||
add_library(${UTIL_LIB} STATIC ${LIB_UTIL_SRC})
|
||||
target_include_directories(${UTIL_LIB} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(${UTIL_LIB} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
target_include_directories(${UTIL_LIB} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/include)
|
||||
target_link_libraries(${UTIL_LIB} PUBLIC nlohmann_json::nlohmann_json)
|
||||
|
||||
# cut back on fluff
|
||||
if (NOT WIN32)
|
||||
|
|
Loading…
Reference in New Issue