Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Panozzo <giovanni@panozzo.it>2017-09-07 23:36:54 +0300
committerGiovanni Panozzo <giovanni@panozzo.it>2017-09-07 23:36:54 +0300
commit185abca302818f138eb43cb490c8d5e2a3ea5c29 (patch)
tree3975372d25f31da67c298f6db882f62f14bf4e0f /CMakeLists.txt
parent8f13dff3a4fa67ce684ce95354a7cc487c914fab (diff)
Allow customized runtime paths in cmake.
This patch allow runtime paths to be different from install paths. This allows relative runtime paths for AppImage builds.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 93de51f14..4661256cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,15 +133,33 @@ endif()
if(NOT REMMINA_DATADIR)
set(REMMINA_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}")
+ if(NOT REMMINA_RUNTIME_DATADIR)
+ set(REMMINA_RUNTIME_DATADIR "${REMMINA_DATADIR}")
+ endif()
endif()
if(NOT REMMINA_LOCALEDIR)
set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_FULL_LOCALEDIR}")
+ if(NOT REMMINA_RUNTIME_LOCALEDIR)
+ set(REMMINA_RUNTIME_LOCALEDIR "${REMMINA_LOCALEDIR}")
+ endif()
endif()
if(NOT REMMINA_PLUGINDIR)
set(REMMINA_PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/remmina/plugins")
+ if(NOT REMMINA_RUNTIME_PLUGINDIR)
+ set(REMMINA_RUNTIME_PLUGINDIR "${REMMINA_PLUGINDIR}")
+ endif()
endif()
if(NOT REMMINA_UIDIR)
set(REMMINA_UIDIR "${REMMINA_DATADIR}/remmina/ui")
+ if(NOT REMMINA_RUNTIME_UIDIR)
+ set(REMMINA_RUNTIME_UIDIR "${REMMINA_UIDIR}")
+ endif()
+endif()
+if(NOT REMMINA_EXTERNAL_TOOLS_DIR)
+ set(REMMINA_EXTERNAL_TOOLS_DIR "${REMMINA_DATADIR}/remmina/external_tools")
+ if(NOT REMMINA_RUNTIME_EXTERNAL_TOOLS_DIR)
+ set(REMMINA_RUNTIME_EXTERNAL_TOOLS_DIR "${REMMINA_EXTERNAL_TOOLS_DIR}")
+ endif()
endif()
# Snap package generation support