41 lines
620 B
CMake
41 lines
620 B
CMake
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
project(park)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp/include
|
|
)
|
|
|
|
|
|
add_executable(park
|
|
main.cpp
|
|
bigsource.cpp
|
|
headers/bigheader.h
|
|
)
|
|
|
|
|
|
|
|
|
|
if (UNIX)
|
|
target_link_libraries(park
|
|
SQLiteCpp
|
|
sqlite3
|
|
pthread
|
|
dl
|
|
sodium
|
|
)
|
|
elseif (MSYS OR MINGW)
|
|
target_link_libraries(park
|
|
SQLiteCpp
|
|
sqlite3
|
|
pthread
|
|
ssp
|
|
libsodium
|
|
)
|
|
endif()
|
|
|