set(Boost_USE_STATIC_LIBS ON) find_package(Boost 1.78 REQUIRED) find_package(SQLite3 REQUIRED) # Because csv-parser needs threads: find_package(fmt) set(CORE_SOURCES database.cpp entity.cpp entityint.cpp entityuuid.cpp seller.cpp article.cpp sale.cpp marketplace.cpp csvreader.cpp jsonutil.cpp utils.cpp ) 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 fmt::fmt) target_link_libraries(core PRIVATE bcrypt) else() target_link_libraries(core PRIVATE sqlite3 nlohmann_json::nlohmann_json fmt::fmt) endif() target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)