summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/Install.cmake
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-08 22:59:44 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-08 22:59:44 +0000
commit576e8b76d437b1f3b3583e9a8f5d55f133c11dda (patch)
treecbd54238bb8424341d8d51b245fa86872dd97dae /CMakeScripts/Install.cmake
parentBuild an inkview.com as consoler wrapper around inkview.exe to allow for prin... (diff)
downloadinkscape-576e8b76d437b1f3b3583e9a8f5d55f133c11dda.tar.gz
inkscape-576e8b76d437b1f3b3583e9a8f5d55f133c11dda.zip
cmake: Correctly use 'install(TARGETS ...)' instead of 'install(FILES ...)' for inkscape executables.
It's not only more elegant, but it also makes the "install/strip" target work! Also convert DESTINATION to a relative path. As relative paths are relative to ${CMAKE_INSTALL_PREFIX}, it's effectively the same as before, but cmake does not properly handle absolute paths on Windows, see [1]. [1] https://gitlab.kitware.com/cmake/cmake/issues/16859 (bzr r15678)
Diffstat (limited to 'CMakeScripts/Install.cmake')
-rw-r--r--CMakeScripts/Install.cmake17
1 files changed, 0 insertions, 17 deletions
diff --git a/CMakeScripts/Install.cmake b/CMakeScripts/Install.cmake
index f1fda7bcc..aab92067a 100644
--- a/CMakeScripts/Install.cmake
+++ b/CMakeScripts/Install.cmake
@@ -6,23 +6,6 @@ if(UNIX)
endif()
if(WIN32)
- install(PROGRAMS
- ${EXECUTABLE_OUTPUT_PATH}/inkscape.exe
- ${EXECUTABLE_OUTPUT_PATH}/inkview.exe
- DESTINATION ${CMAKE_INSTALL_PREFIX}
- )
-
- install(PROGRAMS
- ${EXECUTABLE_OUTPUT_PATH}/inkscape_com.exe
- DESTINATION ${CMAKE_INSTALL_PREFIX}
- RENAME inkscape.com
- )
-
- install(FILES
- ${LIBRARY_OUTPUT_PATH}/libinkscape_base.dll
- DESTINATION ${CMAKE_INSTALL_PREFIX}
- )
-
install(FILES
AUTHORS
COPYING