summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/ConfigPaths.cmake
diff options
context:
space:
mode:
authorMichael Soegtrop <MSoegtrop@yahoo.de>2017-06-05 13:56:11 +0000
committerMichael Soegtrop <MSoegtrop@yahoo.de>2017-06-05 13:56:11 +0000
commit132e83fd6f6124731dc773ae2978d115ca492ef2 (patch)
treeb561a4dbbacd7eecbdbae3fa220a353375ccecf8 /CMakeScripts/ConfigPaths.cmake
parentupdated to trunk (diff)
parent[Bug #1695016] Xaml export misses some radialGradients. (diff)
downloadinkscape-132e83fd6f6124731dc773ae2978d115ca492ef2.tar.gz
inkscape-132e83fd6f6124731dc773ae2978d115ca492ef2.zip
merged with latest version of lpe-bool and trunk
(bzr r14862.2.3)
Diffstat (limited to 'CMakeScripts/ConfigPaths.cmake')
-rw-r--r--CMakeScripts/ConfigPaths.cmake39
1 files changed, 28 insertions, 11 deletions
diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake
index 3b13a7734..de053c4d8 100644
--- a/CMakeScripts/ConfigPaths.cmake
+++ b/CMakeScripts/ConfigPaths.cmake
@@ -1,16 +1,33 @@
message(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}")
if(WIN32)
- set(PACKAGE_LOCALE_DIR "locale")
+ if(${CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT})
+ set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/inkscape"
+ CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
+ endif()
+
+ set(INKSCAPE_LIBDIR "\\\\lib")
+ set(INKSCAPE_DATADIR "")
+
+ set(PACKAGE_LOCALE_DIR "\\\\share\\\\locale")
+
+ set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
+ set(INKSCAPE_SHARE_INSTALL "${SHARE_INSTALL}") # share/inkscape goes directly into /share on Windows
+
+ mark_as_advanced(SHARE_INSTALL)
+else()
+ set(INKSCAPE_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
+ set(INKSCAPE_DATADIR "${CMAKE_INSTALL_PREFIX}/share")
+
+ # TODO: check and change this to correct value:
+ if(NOT PACKAGE_LOCALE_DIR)
+ set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this
+ endif(NOT PACKAGE_LOCALE_DIR)
+
+ if(NOT SHARE_INSTALL)
set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
-else(WIN32)
- # TODO: check and change this to correct value:
- if(NOT PACKAGE_LOCALE_DIR)
- set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this
- endif(NOT PACKAGE_LOCALE_DIR)
+ endif(NOT SHARE_INSTALL)
+ set(INKSCAPE_SHARE_INSTALL "${SHARE_INSTALL}/inkscape")
- if(NOT SHARE_INSTALL)
- set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
- endif(NOT SHARE_INSTALL)
- mark_as_advanced(SHARE_INSTALL)
-endif(WIN32)
+ mark_as_advanced(SHARE_INSTALL)
+endif() \ No newline at end of file