cmake stuff
This commit is contained in:
parent
980f60c003
commit
27f36b4aa8
3 changed files with 27 additions and 25 deletions
|
@ -6,7 +6,9 @@ find_package(SQLite3 REQUIRED)
|
|||
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
|
||||
FetchContent_MakeAvailable(json)
|
||||
|
||||
set(CORE_SOURCES
|
||||
add_library(core STATIC)
|
||||
|
||||
target_sources(core PRIVATE
|
||||
database.cpp
|
||||
entity.cpp
|
||||
entityint.cpp
|
||||
|
@ -20,9 +22,6 @@ set(CORE_SOURCES
|
|||
utils.cpp
|
||||
)
|
||||
|
||||
|
||||
add_library(core STATIC ${CORE_SOURCES})
|
||||
|
||||
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