generated from DiscordPP/echo-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 1.02 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
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.7)
project(reactifier_bot)
set(CMAKE_CXX_STANDARD 14)
add_subdirectory(lib/discordpp) # discordpp
add_subdirectory(lib/rest-beast) # discordpp-rest-beast
add_subdirectory(lib/websocket-beast) # discordpp-websocket-beast
add_subdirectory(lib/plugin-overload) # discordpp-plugin-overload
set(SOURCE_FILES main.cc)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Boost REQUIRED system)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
INCLUDE_DIRECTORIES(
${Boost_INCLUDE_DIRS}
${discordpp_SOURCE_DIR}
${discordpp-rest-beast_SOURCE_DIR}
${discordpp-websocket-beast_SOURCE_DIR}
${discordpp-plugin-overload_SOURCE_DIR}
${json_SOURCE_DIR}
${OPENSSL_INCLUDE_DIR}
)
TARGET_LINK_LIBRARIES(
${PROJECT_NAME}
${Boost_LIBRARIES}
discordpp
discordpp-rest-beast
discordpp-websocket-beast
Threads::Threads
crypto
ssl
)