diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-10-05 01:22:24 +0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-10-05 01:22:24 +0400 |
commit | 98117a8f2172fe2f1894321c3ff5966e6d972a9b (patch) | |
tree | 812adeffaabb188498f2489a95f278159efad72c /CMakeLists.txt | |
parent | f55c52acbc44b4b3cc14dae0a95262c2061c74b1 (diff) |
Utilize GNUInstallDirs module
Also fixes plugin installation when CMAKE_INSTALL_LIBDIR is given as an
absolute path.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 195128fb6..c65fe270c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ include(CheckIncludeFiles) include(CheckLibraryExists) include(FindPkgConfig) include(CheckCCompilerFlag) +include(GNUInstallDirs) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) @@ -34,14 +35,6 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() -if(NOT DEFINED CMAKE_INSTALL_LIBDIR) - set(CMAKE_INSTALL_LIBDIR "lib") -endif() - -if(NOT DEFINED CMAKE_INSTALL_BINDIR) - set(CMAKE_INSTALL_BINDIR "bin") -endif() - if(NOT BUILD_SHARED_LIBS) set(BUILD_SHARED_LIBS ON) endif() @@ -78,9 +71,9 @@ include_directories(.) include_directories(remmina/include) set(REMMINA_VERSION "1.0.0") -set(REMMINA_DATADIR "${CMAKE_INSTALL_PREFIX}/share") -set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale") -set(REMMINA_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/remmina/plugins") +set(REMMINA_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}") +set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_FULL_DATADIR}/locale") +set(REMMINA_PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/remmina/plugins") find_required_package(GTK) find_suggested_package(PTHREAD) |