2019-06-27 03:55:27 +00:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(park)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp/include
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2019-06-29 22:59:48 +00:00
|
|
|
add_executable(park
|
|
|
|
main.cpp
|
|
|
|
data.cpp
|
|
|
|
headers/data.h
|
2019-06-30 00:50:36 +00:00
|
|
|
Customer.cpp
|
2019-06-29 22:59:48 +00:00
|
|
|
headers/Customer.h
|
|
|
|
Park_spot.cpp
|
|
|
|
headers/Park_spot.h
|
|
|
|
Park_time.cpp
|
2019-06-30 00:50:36 +00:00
|
|
|
headers/Park_time.h
|
2019-06-30 17:49:20 +00:00
|
|
|
encrypt.cpp
|
|
|
|
headers/encrypt.h
|
2019-06-29 22:59:48 +00:00
|
|
|
)
|
2019-06-27 03:55:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (UNIX)
|
|
|
|
target_link_libraries(park
|
|
|
|
SQLiteCpp
|
|
|
|
sqlite3
|
|
|
|
pthread
|
|
|
|
dl
|
2019-06-30 17:49:20 +00:00
|
|
|
libsodium
|
2019-06-27 03:55:27 +00:00
|
|
|
)
|
|
|
|
elseif (MSYS OR MINGW)
|
|
|
|
target_link_libraries(park
|
|
|
|
SQLiteCpp
|
|
|
|
sqlite3
|
|
|
|
pthread
|
|
|
|
ssp
|
2019-06-30 17:49:20 +00:00
|
|
|
libsodium
|
2019-06-27 03:55:27 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|