Use TQT_CMAKE_DIR for installation of exported CMake targets.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2f98b15156)
r14.0.x
Slávek Banko 3 years ago
parent fe5767ba0a
commit 7ccbd3b0cd
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -32,16 +32,6 @@ include( TDEMacros )
enable_testing( ) 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 ##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
@ -60,6 +50,17 @@ option( BUILD_TESTS "Builds unit tests" ${BUILD_ALL} )
include( ConfigureChecks.cmake ) 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 ###################### ##### write pkgconfig file ######################
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} ) string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )

Loading…
Cancel
Save