comparison src/CMakeLists.txt @ 94:5d78e980a433

Add hack for replacements.ini install and use new template
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 06 Oct 2016 17:20:10 +0200
parents 5b815897657d
children dd322a4b90d9
comparison
equal deleted inserted replaced
93:ef35abf8be35 94:5d78e980a433
82 SET(MACOSX_BUNDLE_ICON_FILE icon.icns) 82 SET(MACOSX_BUNDLE_ICON_FILE icon.icns)
83 SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) 83 SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
84 SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns) 84 SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns)
85 85
86 SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.") 86 SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.")
87 SET(MACOS__BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in)
87 SET(MACOSX_BUNDLE_NAME "EduExportConvert") 88 SET(MACOSX_BUNDLE_NAME "EduExportConvert")
88 SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert") 89 SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert")
89 SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}) 90 SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION})
90 SET(MACOSX_BUNDLE_BUNDLE_VERSION_STRING "${PROJECT_VERSION}") 91 SET(MACOSX_BUNDLE_BUNDLE_VERSION_STRING "${PROJECT_VERSION}")
91 SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}") 92 SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}")
122 if (WIN32) 123 if (WIN32)
123 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") 124 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode")
124 endif(WIN32) 125 endif(WIN32)
125 126
126 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .) 127 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .)
127 install(FILES replacements.ini DESTINATION share/apps/${PROJECT_NAME} COMPONENT config) 128 install(FILES replacements.ini DESTINATION share/apps/${PROJECT_NAME})
128 129
129 if(APPLE) 130 if(APPLE)
131 file(COPY replacements.ini DESTINATION "${PROJECT_NAME}.app/Contents/MacOS/" )
130 install(CODE " 132 install(CODE "
131 include(BundleUtilities) 133 include(BundleUtilities)
132 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\") 134 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
133 " COMPONENT Runtime) 135 " COMPONENT Runtime)
134 endif() 136 endif()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)