-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (25 loc) · 1.11 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.7)
project(cpprestsdk)
set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES main.cpp cpprestsdk/cpprestsdkController.cpp cpprestsdk/cpprestsdkController.hpp data/student.cpp data/student.hpp service/studentregistryservice.cpp service/studentregistryservice.hpp pistacheLib/pistacheController.cpp pistacheLib/pistacheController.h crow/crowController.cpp crow/crowController.h oatpp/oatppController.h oatpp/oatppStudent.h)
add_executable(cpprestsdk ${SOURCE_FILES})
find_package(PkgConfig)
pkg_check_modules(Pistache REQUIRED IMPORTED_TARGET libpistache)
find_library(CPPREST_LIB cpprest)
find_package(Boost REQUIRED COMPONENTS random system thread filesystem chrono atomic date_time regex)
find_package(OpenSSL 1.0.0 REQUIRED)
find_package(oatpp 1.3.0 REQUIRED)
target_link_libraries(cpprestsdk
${CPPREST_LIB}
Boost::boost
Boost::random
Boost::system
Boost::thread
Boost::filesystem
Boost::chrono
Boost::atomic
Boost::date_time
Boost::regex
OpenSSL::SSL
PkgConfig::Pistache
oatpp::oatpp)