From 137f03b9a34fb39e5321524ab11fa31276458476 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 29 Oct 2013 09:05:51 +0100 Subject: Use ConfigurePaths to get installation paths The advantage is twofold: 1) we have a clear separation between setting up the paths and actually using them, 2) the interface is very likely as configure scripts and makes integration into build system a bit easier. --- bin/gui/CMakeLists.txt | 7 +++++-- bin/gui/config.h.in | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'bin/gui') diff --git a/bin/gui/CMakeLists.txt b/bin/gui/CMakeLists.txt index bb5a8f4..a75b5b1 100644 --- a/bin/gui/CMakeLists.txt +++ b/bin/gui/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required(VERSION 2.6) +#{{{ Variables +set(UCA_GLADEDIR "${UCA_DATADIR}/libuca") +#}}} #{{{ Configure find_package(PkgConfig) @@ -32,9 +35,9 @@ if (GTK2_FOUND) ${GTHREAD2_LIBRARIES}) install(TARGETS ${BINARY} - RUNTIME DESTINATION bin) + RUNTIME DESTINATION ${UCA_BINDIR}) install(FILES control.glade - DESTINATION share/libuca) + DESTINATION ${UCA_GLADEDIR}) endif() #}}} diff --git a/bin/gui/config.h.in b/bin/gui/config.h.in index e7de9c6..566a405 100644 --- a/bin/gui/config.h.in +++ b/bin/gui/config.h.in @@ -1 +1 @@ -#define CONTROL_GLADE_PATH "${CMAKE_INSTALL_PREFIX}/share/libuca/control.glade" +#define CONTROL_GLADE_PATH "${UCA_GLADE_DIR}/control.glade" -- cgit v1.2.3