blob: 0f626bfeb85569a23504f3d5396dd0813424e266 (
plain)
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
|
#################################################
#
# (C) 2021 Michele Calgaro
# Michele (DOT) Calgaro (AT) yahoo.it
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/core
${CMAKE_SOURCE_DIR}/gui
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${DBUS_TQT_LIBRARY_DIRS}
)
##### install paths setup #######################
tde_setup_dbus( dbus-1-tqt )
set( POLKIT_TQT_EXAMPLE "${DATA_INSTALL_DIR}/polkit-tqt/examples/" )
##### install examples runtime config ###########################
configure_file( org.tqt.policykit.examples.service.cmake org.tqt.policykit.examples.service @ONLY )
install(
FILES org.tqt.policykit.examples.policy
DESTINATION ${SHARE_INSTALL_PREFIX}/polkit-1/actions/
)
install(
FILES org.tqt.policykit.examples.conf
DESTINATION ${DBUS_SYSTEM_CONF_DIRECTORY}
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/org.tqt.policykit.examples.service
DESTINATION ${DBUS_SERVICE_DIRECTORY}
)
##### install icons ###########################
add_subdirectory( icons )
##### adent directory ########################
add_subdirectory( agent )
##### install examples source code ###########################
install(
FILES COPYING
DESTINATION ${POLKIT_TQT_EXAMPLE}
)
install(
FILES
org.tqt.policykit.examples.conf
org.tqt.policykit.examples.policy
org.tqt.policykit.examples.xml
${CMAKE_CURRENT_BINARY_DIR}/org.tqt.policykit.examples.service
DESTINATION ${POLKIT_TQT_EXAMPLE}/config
)
install(
FILES PkExample.h PkExample.cpp main.cpp
DESTINATION ${POLKIT_TQT_EXAMPLE}/main
)
install(
FILES PkExampleHelper.h PkExampleHelper.cpp mainHelper.cpp
DESTINATION ${POLKIT_TQT_EXAMPLE}/helper
)
##### example executables #########################
tde_add_executable( polkit-tqt-example AUTOMOC
SOURCES PkExample.cpp main.cpp
LINK ${DBUS_TQT_LIBRARIES} polkit-tqt-gui-shared
DESTINATION ${BIN_INSTALL_DIR}
)
tde_add_executable( polkit-tqt-example-helper AUTOMOC
SOURCES PkExampleHelper.cpp mainHelper.cpp
LINK ${DBUS_TQT_LIBRARIES} polkit-tqt-core-shared
DESTINATION ${BIN_INSTALL_DIR}
)
|