-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
executable file
·57 lines (37 loc) · 1.32 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
cmake_minimum_required(VERSION 3.2)
project(gko_suit)
set(CMAKE_VERBOSE_MAKEFILE OFF)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_SUPPRESS_REGENERATION 1)
set(CMAKE_USE_RELATIVE_PATHS ON)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
set(default_file_permissions OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
set(default_excute_permissions OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"'")
if (APPLE)
include(mac.cmake)
else(APPLE)
include(deps.cmake)
endif()
install(DIRECTORY conf/ DESTINATION conf
FILE_PERMISSIONS ${default_file_permissions}
DIRECTORY_PERMISSIONS ${default_excute_permissions}
PATTERN .svn EXCLUDE)
install(DIRECTORY jars/ DESTINATION log)
include_directories(.)
include_directories(libtorrent_0_16_5/include)
add_subdirectory(bbts-agent)
add_subdirectory(bbts-tracker)
add_subdirectory(clientmock)
add_subdirectory(file_utils)
if (NOT APPLE)
add_subdirectory(libtorrent_0_16_5)
endif(NOT APPLE)
add_subdirectory(minihttpd)
add_subdirectory(tracker-protocol)
#add_subdirectory(plugin)
add_subdirectory(uri)
add_subdirectory(pb_config)
add_subdirectory(common)
add_subdirectory(test)
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/output)