-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
31 lines (30 loc) · 884 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
cmake_minimum_required(VERSION 3.4.1)
project(stunserver)
set(CMAKE_CXX_STANDARD 14)
add_definitions(-DDEBUG)
include_directories(common stuncore networkutils resources)
SET (BOOST_MIN_VERSION "1.55.0")
find_package(
Boost
${BOOST_MIN_VERSION}
COMPONENTS coroutine filesystem system
REQUIRED)
if(Boost_FOUND)
message(STATUS "Found Boost: " ${Boost_LIBRARIES})
include_directories(${Boost_INCLUDE_DIRS})
link_libraries(${Boost_LIBRARIES})
endif()
find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
link_libraries(${OPENSSL_LIBRARIES})
message(STATUS "Found Openssl: " ${OPENSSL_LIBRARIES})
endif()
find_package(Threads)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
add_subdirectory(common)
add_subdirectory(stuncore)
add_subdirectory(networkutils)
add_subdirectory(testcode)
add_subdirectory(client)
add_subdirectory(server)