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 /core | |
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 'core')
-rw-r--r-- | core/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 0d0e22859..5f20a6130 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -32,14 +32,14 @@ install( polkit-tqt-identity.h polkit-tqt-subject.h polkit-tqt-temporaryauthorization.h - DESTINATION ${INCLUDE_INSTALL_DIR} + DESTINATION ${INCLUDE_INSTALL_DIR}/${CMAKE_PROJECT_NAME} ) ##### polkit-tqt-core (shared) ######################### tde_add_library( polkit-tqt-core SHARED AUTOMOC - SOURCES ${polkit_tqt_core_MOCS} + SOURCES polkit-tqt-actiondescription.cpp polkit-tqt-authority.cpp polkit-tqt-details.cpp @@ -48,6 +48,7 @@ tde_add_library( polkit-tqt-core SHARED AUTOMOC polkit-tqt-temporaryauthorization.cpp VERSION 0.0.0 CXX_FEATURES cxx_nullptr - LINK ${TQT_LIBRARIES} ${POLKIT_GOBJECT_LIBRARIES} + LINK ${TQT_LIBRARIES} + LINK_PRIVATE ${POLKIT_GOBJECT_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR} ) |