diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-09-11 02:59:04 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-09-18 04:08:52 +0200 |
commit | 88e7ccc71663e364d6f433adc6281482bc964795 (patch) | |
tree | 3d3e5d7298d519e58711f70ee77872d8fae28866 | |
parent | 255eb2a46823fde79e43061a862ed2b3b3ac2702 (diff) | |
download | tqtinterface-88e7ccc71663e364d6f433adc6281482bc964795.tar.gz tqtinterface-88e7ccc71663e364d6f433adc6281482bc964795.zip |
cmake: Install libraries according to multi-arch rules
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b23f4a3..8329c23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ set( TQT_VERSION "${TQT_MAJOR_VERSION}.${TQT_MINOR_VERSION}.${TQT_MICRO_VERSION} cmake_minimum_required( VERSION 2.8 ) include( CheckCXXSourceCompiles ) +include( GNUInstallDirs OPTIONAL ) ##### include our cmake modules ################# @@ -34,7 +35,11 @@ include( TDEMacros ) tde_setup_install_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ) tde_setup_install_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" ) -tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" ) +if( CMAKE_INSTALL_LIBDIR ) + tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" ) +else( ) + tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" ) +endif( ) tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/tqt" ) tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" ) |