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-13 03:04:10 +0100
commit7ccbd3b0cd637b30ed0008743a5c38190eeb717e (patch)
tree58c3d5f433a3a35fb299b651867b13a0ea5981fb
parentfe5767ba0ad3c7e1fcb5887e570baa5671098bee (diff)
downloadpolkit-tqt-7ccbd3b0cd637b30ed0008743a5c38190eeb717e.tar.gz
polkit-tqt-7ccbd3b0cd637b30ed0008743a5c38190eeb717e.zip
Use TQT_CMAKE_DIR for installation of exported CMake targets.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2f98b15156b5a9d6a103e0c8763e93f1256b940d)
-rw-r--r--CMakeLists.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6aeed0b48..b9174f88a 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} )