-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (36 loc) · 1.15 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
40
41
42
43
44
45
46
47
48
49
50
51
# ########## Project setup ##########
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
cmake_policy(SET CMP0048 NEW)
PROJECT(x801 VERSION 0.0)
IF(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/discordpp/README.md)
# Get our fork of RakNet
EXECUTE_PROCESS(
COMMAND git submodule update --init --recursive
)
ELSE()
MESSAGE(
STATUS
"If the build fails, try running "
"`git submodule update --recursive --remote`."
)
ENDIF()
# ######### General setup ##########
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")
# External dependency managed by this script
# discordpp
ADD_SUBDIRECTORY(discordpp)
# Aho-Corasick algo impl.
#ADD_SUBDIRECTORY(aho_corasick)
# Our own submodules
ADD_SUBDIRECTORY(Vane)
# actual target:
# ADD_LIBRARY(tdr ${tdr_library}_SRCS ${tdr_library_HDRS})
# SET_TARGET_PROPERTIES(tdr PROPERTIES VERSION 0.0.0)
# add install target:
# INSTALL(TARGETS tdr DESTINATION lib)