diff src/CMakeLists.txt @ 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 1129d49b9baf
children 16ae3e7338b3
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)