forked from Charleslee522/SCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (25 loc) · 868 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (25 loc) · 868 Bytes
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
cmake_minimum_required(VERSION 3.0)
include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.19.87.tar.gz"
SHA1 "1b0041a06357d2c9f1f1a7e93ff3132c36411719"
)
project(SCP)
set(SCP_VERSION_MAJOR 1)
set(SCP_VERSION_MINOR 0)
hunter_add_package(cereal)
find_package(cereal CONFIG REQUIRED)
hunter_add_package(OpenSSL)
#find_package(OpenSSL CONFIG REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
#add_definitions(-DVERBOSE=1 -DDEBUG=1)
#add_definitions(-DPRINTFUNC=1)
#include the subdirectory containing our libs
include_directories(Hello
${CMAKE_CURRENT_SOURCE_DIR}/include
${CEREAL_ROOT}/include
${OpenSSL_ROOT}/include
)
message("${CMAKE_CURRENT_SOURCE_DIR}/include")
add_subdirectory(src)