-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (24 loc) · 1013 Bytes
/
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
31
project(meetup_raffle)
cmake_minimum_required(VERSION 3.8)
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS})
find_package(OpenSSL REQUIRED)
add_executable(meetup_raffle main.cpp
beast_https_get.hpp
beast_https_get.cpp)
target_include_directories(meetup_raffle PUBLIC libs
${OPENSSL_INCLUDE_DIR})
target_include_directories(meetup_raffle PUBLIC libs/Range-V3-VS2015/include)
target_link_libraries(meetup_raffle ${Boost_LIBRARIES}
${OPENSSL_LIBRARIES})
if(UNIX OR CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic")
else(MSVC)
# add_definitions("/W4 /WX")
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
add_definitions(/D_SCL_SECURE_NO_WARNINGS)
add_definitions(/D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS)
add_definitions(/std:c++latest)
add_definitions(/DNOMINMAX)
endif()