-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (26 loc) · 1.24 KB
/
CMakeLists.txt
File metadata and controls
33 lines (26 loc) · 1.24 KB
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
# CMakeLists.txt
# Used for building the example code on any CMake supported system.
# This software is licensed under the MIT license. Please refer to
# LICENSE.txt for more information.
#IF(BIICODE)
# INCLUDE("biicode.cmake")
# RETURN()
#ENDIF()
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (PhantomBot)
# If we're on GCC, set the c++11 compilation flag.
IF (CMAKE_COMPILER_IS_GNUCXX)
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -pthread -std=c++11")
ENDIF (CMAKE_COMPILER_IS_GNUCXX)
SET (EX_BUILDLOCATION "PhantomBot")
INCLUDE_DIRECTORIES ("Platform/" "Lib/" "Network/" "TwitchAPI/" "Background/" "TwitchCommands/" "TwitchIRC/" "CustomCommands/")
FILE(GLOB_RECURSE PLATFORM_SOURCES "Platform/*.cpp")
FILE(GLOB_RECURSE LIB_SOURCES "Lib/*.cpp")
FILE(GLOB_RECURSE NETWORK_SOURCES "Network/*.cpp")
FILE(GLOB_RECURSE TAPI_SOURCES "TwitchAPI/*.cpp")
FILE(GLOB_RECURSE BG_SOURCES "Background/*.cpp")
FILE(GLOB_RECURSE TCOMMANDS_SOURCES "TwitchCommands/*.cpp")
FILE(GLOB_RECURSE TIRC_SOURCES "TwitchIRC/*.cpp")
FILE(GLOB_RECURSE CCMDS_SOURCES "CustomCommands/*.cpp")
ADD_EXECUTABLE (${EX_BUILDLOCATION} "PhantomBot.cpp" ${PLATFORM_SOURCES} ${LIB_SOURCES}
${NETWORK_SOURCES} ${TAPI_SOURCES} ${BG_SOURCES} ${TCOMMANDS_SOURCES} ${TIRC_SOURCES} ${CCMDS_SOURCES})