Use TQT_CMAKE_DIR for installation of exported CMake targets.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 3 years ago
parent 2ab8863eea
commit 2f98b15156
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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} )

Loading…
Cancel
Save