Simplyfy nlohmann_json integration
This commit is contained in:
parent
8abb60c5db
commit
d6b3606bd6
6 changed files with 5 additions and 16 deletions
|
@ -3,9 +3,8 @@ set(Boost_USE_STATIC_LIBS ON)
|
|||
find_package(Boost 1.78 REQUIRED)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
|
||||
# Because csv-parser needs threads:
|
||||
|
||||
find_package(fmt)
|
||||
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
|
||||
FetchContent_MakeAvailable(json)
|
||||
|
||||
set(CORE_SOURCES
|
||||
database.cpp
|
||||
|
@ -23,7 +22,7 @@ set(CORE_SOURCES
|
|||
|
||||
|
||||
add_library(core STATIC ${CORE_SOURCES})
|
||||
#target_include_directories(core PRIVATE ${PROJECT_SOURCE_DIR}/subprojects/csv-parser/single_include)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json)
|
||||
target_link_libraries(core PRIVATE bcrypt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue