Parkmanne/CMakeLists.txt
2019-07-01 22:38:06 -03:00

51 lines
897 B
CMake

cmake_minimum_required(VERSION 3.11)
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
data.cpp
headers/data.h
encrypt.cpp
headers/encrypt.h
Customer.cpp
headers/Customer.h
Park_spot.cpp
headers/Park_spot.h
Park_time.cpp
headers/Park_time.h
Query.cpp
headers/Query.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()