diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-01-03 17:55:46 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-01-04 04:06:38 +0100 |
commit | 2971f209dbecd56266de42030d226b9085c6bf63 (patch) | |
tree | dadecfc99544e994f11c55a70e9957ae67d0e788 /examples | |
parent | 27ea6ede3cc480e4680fcc56b29df6ea824f7877 (diff) | |
download | polkit-tqt-2971f209dbecd56266de42030d226b9085c6bf63.tar.gz polkit-tqt-2971f209dbecd56266de42030d226b9085c6bf63.zip |
CMake rules adjustments:
+ Use the usual TDESetupPaths macros.
+ Install libraries according to multi-arch rules.
+ Use `install( DIRECTORY ... )` for headers in CXX style.
+ Remove linking unused variables ${..._MOCS}.
+ Remove linking for indirectly used libraries.
+ Use private linking for exported CMake targets.
+ Add the installation of exported CMake targets.
+ Use keyword TEST for tde_add_check_executable.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/agent/CMakeLists.txt | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8cb8e8c5b..de312fe5b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -93,13 +93,12 @@ install( tde_add_executable( polkit-tqt-example AUTOMOC SOURCES PkExample.cpp main.cpp - LINK ${TQT_LIBRARIES} ${DBUS_TQT_LIBRARIES} polkit-tqt-core-shared polkit-tqt-gui-shared + 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 ${TQT_LIBRARIES} ${DBUS_TQT_LIBRARIES} polkit-tqt-core-shared + LINK ${DBUS_TQT_LIBRARIES} polkit-tqt-core-shared DESTINATION ${BIN_INSTALL_DIR} ) - diff --git a/examples/agent/CMakeLists.txt b/examples/agent/CMakeLists.txt index 4ce78eddb..358875c03 100644 --- a/examples/agent/CMakeLists.txt +++ b/examples/agent/CMakeLists.txt @@ -37,8 +37,6 @@ install( tde_add_executable( polkit-tqt-agent-example AUTOMOC SOURCES main.cpp pkagentexample.cpp tqtlistener.cpp - LINK ${TQT_LIBRARIES} ${POLKIT_GOBJECT_LIBRARIES} ${POLKIT_AGENT_LIBRARIES} - polkit-tqt-core-shared polkit-tqt-agent-shared + LINK polkit-tqt-agent-shared DESTINATION ${BIN_INSTALL_DIR} ) - |