diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e62764..3e63385 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,9 +41,26 @@ include( TDESetupPaths ) tde_setup_paths( ) +##### get the system's default path for libraries + +tde_save_and_set( CMAKE_INSTALL_PREFIX "/usr" ) +include( GNUInstallDirs OPTIONAL ) +if( CMAKE_INSTALL_LIBDIR ) + set( SYSTEM_LIBDIR "${CMAKE_INSTALL_LIBDIR}" ) +else( ) + set( SYSTEM_LIBDIR "lib${LIB_SUFFIX}" ) +endif( ) +tde_restore( CMAKE_INSTALL_PREFIX ) + + ##### zlibrary-tqt paths _tde_internal_setup_path( + CMAKE_ZLIBRARY_INSTALL_PREFIX "/usr" + "Base directory for zlibrary-tqt files" +) + +_tde_internal_setup_path( ZL_SHARE_INSTALL_PREFIX "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/share/zlibrary-tqt" "Base directory for zlibrary-tqt files which go to share" ) @@ -54,7 +71,7 @@ _tde_internal_setup_path( ) _tde_internal_setup_path( - ZL_LIB_INSTALL_DIR "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/lib${LIB_SUFFIX}" + ZL_LIB_INSTALL_DIR "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/${SYSTEM_LIBDIR}" "Base directory for zlibrary-tqt lib files" ) |