From 7f818c1e29d66ab335b3c232f60ae4b7899a9913 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 4 Apr 2017 12:51:13 +0200 Subject: Use GNUInstallDirs to set install paths --- bin/gui/CMakeLists.txt | 6 +++--- bin/tools/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/gui/CMakeLists.txt b/bin/gui/CMakeLists.txt index 97ddddd..2ca575d 100644 --- a/bin/gui/CMakeLists.txt +++ b/bin/gui/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) #{{{ Variables -set(UCA_GLADEDIR "${UCA_DATADIR}/libuca") +set(CMAKE_INSTALL_GLADEDIR "${CMAKE_INSTALL_DATADIR}/libuca") #}}} #{{{ Configure find_package(PkgConfig) @@ -34,11 +34,11 @@ if (GTK2_FOUND) ${GTHREAD2_LIBRARIES}) install(TARGETS ${BINARY} - RUNTIME DESTINATION ${UCA_BINDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT executables) install(FILES control.glade - DESTINATION ${UCA_GLADEDIR} + DESTINATION ${CMAKE_INSTALL_GLADEDIR} COMPONENT executables) endif() #}}} diff --git a/bin/tools/CMakeLists.txt b/bin/tools/CMakeLists.txt index 977af28..6eb99eb 100644 --- a/bin/tools/CMakeLists.txt +++ b/bin/tools/CMakeLists.txt @@ -27,6 +27,6 @@ foreach (BINARY ${BINARIES}) endforeach () install(TARGETS uca-benchmark uca-grab uca-gen-doc uca-info - RUNTIME DESTINATION ${UCA_BINDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT executables) #}}} -- cgit v1.2.3