-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (31 loc) · 1.03 KB
/
CMakeLists.txt
File metadata and controls
36 lines (31 loc) · 1.03 KB
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
cmake_minimum_required(VERSION 3.7)
set(CLASSES
PluginsDeployer
PluginsDeployerFactory
BasicPluginsDeployer
PlatformPluginsDeployer
XcbglIntegrationPluginsDeployer
BearerPluginsDeployer
SvgPluginsDeployer
SqlPluginsDeployer
PositioningPluginsDeployer
LocationPluginsDeployer
Multimedia5PluginsDeployer
Multimedia6PluginsDeployer
NetworkInformationPluginsDeployer
WebEnginePluginsDeployer
QmlPluginsDeployer
Qt3DPluginsDeployer
GamepadPluginsDeployer
PrintSupportPluginsDeployer
TextToSpeechPluginsDeployer
TlsBackendsDeployer
WaylandcompositorPluginsDeployer
)
# TODO: CMake <= 3.7 (at least!) doesn't allow for using OBJECT libraries with target_link_libraries
add_library(deployers OBJECT)
target_link_libraries(deployers PUBLIC linuxdeploy_core linuxdeploy-plugin-qt_util)
foreach(class ${CLASSES})
target_sources(deployers PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/${class}.h)
target_sources(deployers PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${class}.cpp)
endforeach()