-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
133 lines (118 loc) · 4.46 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
cmake_minimum_required (VERSION 3.6)
project (CrossTalk LANGUAGES CXX)
find_package(Qt5 COMPONENTS Gui Widgets Network REQUIRED)
link_libraries(Qt5::Gui Qt5::Widgets Qt5::Network)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
include_directories(
"src"
"deps"
)
set (QT_WEBSOCKET
"deps/QtWebsocket/ServerThreaded/ServerThreaded.h"
"deps/QtWebsocket/ServerThreaded/ServerThreaded.cpp"
"deps/QtWebsocket/ServerThreaded/SocketThread.h"
"deps/QtWebsocket/ServerThreaded/SocketThread.cpp"
"deps/QtWebsocket/functions.h"
"deps/QtWebsocket/functions.cpp"
"deps/QtWebsocket/QTlsServer.h"
"deps/QtWebsocket/QTlsServer.cpp"
"deps/QtWebsocket/QWsFrame.h"
"deps/QtWebsocket/QWsFrame.cpp"
"deps/QtWebsocket/QWsHandshake.h"
"deps/QtWebsocket/QWsHandshake.cpp"
"deps/QtWebsocket/QWsServer.h"
"deps/QtWebsocket/QWsServer.cpp"
"deps/QtWebsocket/QWsSocket.h"
"deps/QtWebsocket/QWsSocket.cpp"
"deps/QtWebsocket/WsEnums.h"
)
source_group("QtWebSocket" FILES ${QT_WEBSOCKET})
set (POSITIONAL_AUDIO
"src/positional_audio/config_positionalaudio.h"
"src/positional_audio/config_positionalaudio.cpp"
"src/positional_audio/definitions_positionalaudio.h"
"src/positional_audio/groupbox_positionalaudio.h"
"src/positional_audio/groupbox_positionalaudio.cpp"
"src/positional_audio/groupbox_positionalaudio_servers.h"
"src/positional_audio/groupbox_positionalaudio_servers.cpp"
"src/positional_audio/groupbox_positionalaudio_status.h"
"src/positional_audio/groupbox_positionalaudio_status.cpp"
"src/positional_audio/guildwarstwo.h"
"src/positional_audio/guildwarstwo.cpp"
"src/positional_audio/minecraft.h"
"src/positional_audio/minecraft.cpp"
"src/positional_audio/mod_positionalaudio.h"
"src/positional_audio/mod_positionalaudio.cpp"
"src/positional_audio/settings_positionalaudio.h"
"src/positional_audio/settings_positionalaudio.cpp"
"src/positional_audio/tsvr_definitions.h"
"src/positional_audio/tsvr_obj.h"
"src/positional_audio/tsvr_obj.cpp"
"src/positional_audio/tsvr_obj_self.h"
"src/positional_audio/tsvr_obj_self.cpp"
"src/positional_audio/tsvr_obj_other.h"
"src/positional_audio/tsvr_obj_other.cpp"
"src/positional_audio/tsvr_universe.h"
"src/positional_audio/tsvr_universe.cpp"
"src/positional_audio/shared_mem_reader.h"
"src/positional_audio/shared_mem_reader.cpp"
"src/positional_audio/linked_mem.h"
)
source_group("positional_audio" FILES ${POSITIONAL_AUDIO})
set (PLUGIN_SRC
"src/banner.h"
"src/banner.cpp"
"src/banner_frame.h"
"src/banner_frame.cpp"
"src/banner_frame.ui"
"src/config.h"
"src/config.cpp"
"src/config.ui"
"src/groupbox_position_spread.h"
"src/groupbox_position_spread.cpp"
"src/mod_agmu.h"
"src/mod_agmu.cpp"
"src/mod_muter_channel.h"
"src/mod_muter_channel.cpp"
"src/mod_position_spread.h"
"src/mod_position_spread.cpp"
"src/plugin.h"
"src/plugin.cpp"
"src/plugin_qt.h"
"src/plugin_qt.cpp"
"src/settings_position_spread.h"
"src/settings_position_spread.cpp"
"src/simplepanner.h"
"src/simplepanner.cpp"
"src/snt.h"
"src/snt.cpp"
"src/ts_ptt_qt.h"
"src/ts_ptt_qt.cpp"
"crosstalk.qrc"
)
source_group("plugin" FILES ${PLUGIN_SRC})
# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
#source_group("" FILES ${PLUGIN_SRC})
# Turn on the ability to create folders to organize projects (.vcproj)
# It creates "CMakePredefinedTargets" folder by default and adds CMake
# defined projects like INSTALL.vcproj and ZERO_CHECK.vcproj
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Set compiler flags and options.
# Here it is setting the Visual Studio warning level to 4
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
# Command to output information to the console
# Useful for displaying errors, warnings, and debugging
# message ("cxx Flags:" ${CMAKE_CXX_FLAGS})
# Sub-directories where more CMakeLists.txt exist
#add_subdirectory(app)
#add_subdirectory (math)
set(WITH_VOLUME true)
set(WITH_VOLUME_WIDGETS true)
#add_subdirectory(./deps/teamspeak-plugin-qt-common common_out)
include(./deps/teamspeak-plugin-qt-common/CMakeLists.txt)
add_library(CrossTalk SHARED
${PLUGIN_SRC} ${TS_XX} ${TS_CORE} ${TS_QT_CORE} ${TS_QT_VOLUME} ${QT_WEBSOCKET} ${POSITIONAL_AUDIO})
set_property(TARGET CrossTalk PROPERTY CXX_STANDARD 17)
set_property(TARGET CrossTalk PROPERTY CXX_STANDARD_REQUIRED ON)