-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
77 lines (70 loc) · 3.24 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
message("adding teamspeak-plugin-qt-common")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
find_package(Qt5 COMPONENTS Core Sql REQUIRED)
link_libraries(Qt5::Core Qt5::Sql)
include_directories(
"${CMAKE_CURRENT_LIST_DIR}/ts3client-pluginsdk/include"
"${CMAKE_CURRENT_LIST_DIR}/core"
)
set (TS_QT_CORE
"${CMAKE_CURRENT_LIST_DIR}/core/core/plugin_base.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/translator.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/module.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_helpers_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_settings_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_logging_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_context_menu_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_infodata_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_servergroups.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_serversinfo.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/ts_serverinfo_qt.h"
"${CMAKE_CURRENT_LIST_DIR}/core/core/talkers.h"
"${CMAKE_CURRENT_LIST_DIR}/core/plugin_base.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/translator.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/module.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_helpers_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_settings_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_logging_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_context_menu_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_infodata_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_servergroups.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_serversinfo.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/ts_serverinfo_qt.cpp"
"${CMAKE_CURRENT_LIST_DIR}/core/talkers.cpp"
)
# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
source_group("ts_qt_core" FILES ${TS_QT_CORE})
if (WITH_VOLUME OR WITH_VOLUME_WIDGETS)
message("adding volume")
set (TS_QT_VOLUME
"${CMAKE_CURRENT_LIST_DIR}/volume/volume/dsp_volume.h"
"${CMAKE_CURRENT_LIST_DIR}/volume/dsp_volume.cpp"
"${CMAKE_CURRENT_LIST_DIR}/volume/volume/dsp_volume_agmu.h"
"${CMAKE_CURRENT_LIST_DIR}/volume/dsp_volume_agmu.cpp"
"${CMAKE_CURRENT_LIST_DIR}/volume/volume/dsp_volume_ducker.h"
"${CMAKE_CURRENT_LIST_DIR}/volume/dsp_volume_ducker.cpp"
"${CMAKE_CURRENT_LIST_DIR}/volume/volume/volumes.h"
"${CMAKE_CURRENT_LIST_DIR}/volume/volumes.cpp"
)
include_directories(
"${CMAKE_CURRENT_LIST_DIR}/volume"
)
if (WITH_VOLUME_WIDGETS)
message("adding volume widgets")
set(CMAKE_AUTOUIC ON)
find_package(Qt5 COMPONENTS Gui Widgets REQUIRED)
link_libraries(Qt5::Gui Qt5::Widgets)
set (TS_QT_VOLUME
${TS_QT_VOLUME}
"${CMAKE_CURRENT_LIST_DIR}/volume_widgets/volume_widgets/fader_vertical.h"
"${CMAKE_CURRENT_LIST_DIR}/volume_widgets/fader_vertical.cpp"
"${CMAKE_CURRENT_LIST_DIR}/volume_widgets/fader_vertical.ui"
)
include_directories("${CMAKE_CURRENT_LIST_DIR}/volume_widgets")
endif (WITH_VOLUME_WIDGETS)
source_group("ts_qt_volume" FILES ${TS_QT_VOLUME})
endif (WITH_VOLUME OR WITH_VOLUME_WIDGETS)