comparison 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
comparison
equal deleted inserted replaced
67:10569ebcf496 68:93d3197a883b
136 if (WIN32) 136 if (WIN32)
137 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") 137 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode")
138 endif(WIN32) 138 endif(WIN32)
139 139
140 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .) 140 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .)
141 INSTALL(CODE "
142 include(BundleUtilities)
143 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
144 " COMPONENT Runtime)
145 141
142 if(APPLE)
143 install(CODE "
144 include(BundleUtilities)
145 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
146 " COMPONENT Runtime)
147 endif()
146 set(CPACK_BINARY_DRAGNDROP ON) 148 set(CPACK_BINARY_DRAGNDROP ON)
147 include(CPack) 149 include(CPack)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)