changeset 68:93d3197a883b

Only create application bundle on MacOS
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 26 May 2015 12:42:21 +0200
parents 10569ebcf496
children 689c82e7d07e
files src/CMakeLists.txt
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/CMakeLists.txt	Fri May 22 12:34:36 2015 +0200
+++ b/src/CMakeLists.txt	Tue May 26 12:42:21 2015 +0200
@@ -138,10 +138,12 @@
 endif(WIN32)
 
 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .)
-INSTALL(CODE "
-    include(BundleUtilities)
-    fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
-    " COMPONENT Runtime)
 
+if(APPLE)
+   install(CODE "
+       include(BundleUtilities)
+       fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
+       " COMPONENT Runtime)
+endif()
 set(CPACK_BINARY_DRAGNDROP ON)
 include(CPack)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)