summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-01-12 17:36:51 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-01-12 17:36:51 +0100
commit2f98b15156b5a9d6a103e0c8763e93f1256b940d (patch)
tree8d4ea2ed18c3a7584ab13a4902f01ef6abf108e6
parent2ab8863eead7cf707d0d6c7f9f3c23bbf2cf640d (diff)
downloadpolkit-tqt-2f98b151.tar.gz
polkit-tqt-2f98b151.zip
Use TQT_CMAKE_DIR for installation of exported CMake targets.HEADmaster
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ea16db5b..fce5c13a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,16 +32,6 @@ include( TDEMacros )
enable_testing( )
-##### setup install paths #######################
-
-if( CMAKE_INSTALL_LIBDIR )
- tde_setup_install_path( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" )
-endif( )
-
-include( TDESetupPaths )
-tde_setup_paths( )
-
-
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
@@ -60,6 +50,17 @@ option( BUILD_TESTS "Builds unit tests" ${BUILD_ALL} )
include( ConfigureChecks.cmake )
+##### setup install paths #######################
+
+tde_setup_install_path( CMAKE_INSTALL_DIR "${TQT_CMAKE_DIR}" )
+if( CMAKE_INSTALL_LIBDIR )
+ tde_setup_install_path( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" )
+endif( )
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
##### write pkgconfig file ######################
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )