forked from BearWare/TeamTalk5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (53 loc) · 1.84 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 2.8)
project (TeamTalk5SDK)
option (BUILD_TEAMTALK_CORE "Build TeamTalk core library" OFF)
option (BUILD_TEAMTALK_LIBRARIES "Build TeamTalk libraries" ON)
option (BUILD_TEAMTALK_CLIENTS "Build TeamTalk client examples" ON)
option (BUILD_TEAMTALKPRO_SERVERS "Build TeamTalk server examples" ON)
set (TEAMTALK_ROOT ${CMAKE_CURRENT_LIST_DIR})
if (BUILD_TEAMTALK_CORE)
add_subdirectory (Library/TeamTalkLib)
endif()
if (BUILD_TEAMTALK_LIBRARIES)
add_subdirectory (Library/TeamTalkJNI)
endif()
if (BUILD_TEAMTALK_CLIENTS)
add_subdirectory (Client/ttserverlog)
endif()
if (BUILD_TEAMTALKPRO_SERVERS)
add_subdirectory (Server/TeamTalkServer)
endif()
if (MSVC)
if (BUILD_TEAMTALK_LIBRARIES)
add_subdirectory (Library/TeamTalk.NET)
endif()
if (BUILD_TEAMTALK_CLIENTS)
add_subdirectory (Client/TeamTalkClassic)
add_subdirectory (Client/TeamTalkApp.NET)
add_subdirectory (Client/ttserverlog.NET)
endif()
if (BUILD_TEAMTALKPRO_SERVERS)
add_subdirectory (Server/TeamTalkServer.NET)
endif()
endif()
if (BUILD_TEAMTALK_CORE)
if (BUILD_TEAMTALK5DLL)
if (BUILD_TEAMTALK_LIBRARIES AND BUILD_TEAMTALK_LIBRARY_JNI)
add_dependencies (TeamTalk5-jni TeamTalk5DLL)
endif()
if (BUILD_TEAMTALK_CLIENTS AND BUILD_TEAMTALK_CLIENT_LOG_EXAMPLE)
add_dependencies (ttserverlog TeamTalk5DLL)
endif()
endif()
if (BUILD_TEAMTALK5PRODLL)
if (BUILD_TEAMTALK_LIBRARIES AND BUILD_TEAMTALKPRO_LIBRARY_JNI)
add_dependencies (TeamTalk5Pro-jni TeamTalk5ProDLL)
endif()
if (BUILD_TEAMTALKPRO_SERVERS AND BUILD_TEAMTALKPRO_SERVER_EXAMPLE)
add_dependencies (TeamTalk5ProServer TeamTalk5ProDLL)
endif()
if (BUILD_TEAMTALK_CLIENTS AND BUILD_TEAMTALKPRO_CLIENT_LOG_EXAMPLE)
add_dependencies (ttproserverlog TeamTalk5ProDLL)
endif()
endif()
endif()