Fix up location of library files and provide default values for CMAKE_ZLIBRARY_INSTALL_PREFIX

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 4 months ago
parent 9feb16210d
commit bcf651d69c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -41,8 +41,25 @@ include( TDESetupPaths )
tde_setup_paths( ) 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 ##### zlibrary-tqt paths
_tde_internal_setup_path(
CMAKE_ZLIBRARY_INSTALL_PREFIX "/usr"
"Base directory for zlibrary-tqt files"
)
_tde_internal_setup_path( _tde_internal_setup_path(
ZL_SHARE_INSTALL_PREFIX "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/share/zlibrary-tqt" ZL_SHARE_INSTALL_PREFIX "${CMAKE_ZLIBRARY_INSTALL_PREFIX}/share/zlibrary-tqt"
"Base directory for zlibrary-tqt files which go to share" "Base directory for zlibrary-tqt files which go to share"
@ -54,7 +71,7 @@ _tde_internal_setup_path(
) )
_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" "Base directory for zlibrary-tqt lib files"
) )

@ -1,2 +1,2 @@
/usr/include/zlibrary-tqt/core /usr/include/zlibrary-tqt/core
/usr/lib/libzlcore-tqt.so /usr/lib/x86_64-linux-gnu/libzlcore-tqt.so

@ -1 +1 @@
/usr/lib/libzlcore-tqt.so.* /usr/lib/x86_64-linux-gnu/libzlcore-tqt.so.*

@ -1,2 +1,2 @@
/usr/include/zlibrary-tqt/text /usr/include/zlibrary-tqt/text
/usr/lib/libzltext-tqt.so /usr/lib/x86_64-linux-gnu/libzltext-tqt.so

@ -1 +1 @@
/usr/lib/libzltext-tqt.so.* /usr/lib/x86_64-linux-gnu/libzltext-tqt.so.*

Loading…
Cancel
Save