diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-12-06 15:28:04 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-12-08 16:28:12 +0100 |
commit | 379367890cb9cc9721234b6b810a94ecec388b75 (patch) | |
tree | fad11c7b9f8432a7e1815399cc847c3ea6b4cd2d | |
parent | bf076238d30b3e8523b5362f5698ea2e3660c5bf (diff) | |
download | tqscintilla-379367890cb9cc9721234b6b810a94ecec388b75.tar.gz tqscintilla-379367890cb9cc9721234b6b810a94ecec388b75.zip |
cmake: Install the library to the default system location.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1382f3ddb7d28b59432c8c32455734bada2b6016)
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | ConfigureChecks.cmake | 12 |
2 files changed, 4 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 89273b7..cd4c56f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ include( CheckIncludeFile ) include( CheckLibraryExists ) include( CheckCSourceCompiles ) include( CheckCXXSourceCompiles ) +include( GNUInstallDirs OPTIONAL ) #### include our cmake modules @@ -35,6 +36,9 @@ include( TDEMacros ) ##### 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( ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 5ee5651..b1399ef 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -58,15 +58,3 @@ execute_process( ) set( TQT_INCLUDES_DIR ${_includedir} ) message( STATUS "TQT include directory: ${TQT_INCLUDES_DIR}" ) - - -##### Look for tqt3 libraries location - -execute_process( - COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=libdir - OUTPUT_VARIABLE _libdir - RESULT_VARIABLE _result - OUTPUT_STRIP_TRAILING_WHITESPACE -) -set( TQT_LIBDIR ${_libdir} ) -message( STATUS "TQT libraries directory: ${TQT_LIBDIR}" ) |