diff options
-rw-r--r-- | CMakeLists.txt | 21 |
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} ) |