summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-01-09 22:42:22 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-01-09 22:42:22 +0000
commit9a1b0a8c63528142b17bfc81ecfe44031a74a91b (patch)
tree29e64a27486449536ffce590d7e89d46e46f6ac0 /src/CMakeLists.txt
parentFix and improve window size/position handling/restoration (diff)
downloadinkscape-9a1b0a8c63528142b17bfc81ecfe44031a74a91b.tar.gz
inkscape-9a1b0a8c63528142b17bfc81ecfe44031a74a91b.zip
Do not install static libraries
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index de5419de8..342691151 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -559,19 +559,20 @@ target_link_libraries(inkview inkscape_base)
#Define the installation
if(NOT WIN32)
install(TARGETS
- inkscape_base
inkscape
inkview
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib/inkscape
- ARCHIVE DESTINATION lib/inkscape)
+ RUNTIME DESTINATION bin)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS inkscape_base LIBRARY DESTINATION lib/inkscape)
+ endif()
else()
install(TARGETS
- inkscape_base
inkscape
inkscape_com
inkview
inkview_com
- RUNTIME DESTINATION .
- ARCHIVE DESTINATION .)
+ RUNTIME DESTINATION .)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS inkscape_base RUNTIME DESTINATION .)
+ endif()
endif()