Mercurial > clickerconvert
comparison src/CMakeLists.txt @ 98:dd322a4b90d9 tip
Fix resource finding and installation
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 07 Oct 2016 12:44:50 +0200 |
parents | 5d78e980a433 |
children |
comparison
equal
deleted
inserted
replaced
97:ccd1dbea2536 | 98:dd322a4b90d9 |
---|---|
79 set(EXTRA_STATIC_LIBS Qt5::QCocoaIntegrationPlugin ${MAC_EXTRA_LIBS} ) | 79 set(EXTRA_STATIC_LIBS Qt5::QCocoaIntegrationPlugin ${MAC_EXTRA_LIBS} ) |
80 set (_add_executable_params MACOSX_BUNDLE) | 80 set (_add_executable_params MACOSX_BUNDLE) |
81 SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app") | 81 SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app") |
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_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/replacements.ini PROPERTIES MACOSX_PACKAGE_LOCATION Resources) | |
84 SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns) | 85 SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns) |
85 | 86 |
86 SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.") | 87 SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.") |
87 SET(MACOS__BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in) | 88 SET(MACOS_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in) |
88 SET(MACOSX_BUNDLE_NAME "EduExportConvert") | 89 SET(MACOSX_BUNDLE_NAME "EduExportConvert") |
89 SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert") | 90 SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert") |
90 SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}) | 91 SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}) |
91 SET(MACOSX_BUNDLE_BUNDLE_VERSION_STRING "${PROJECT_VERSION}") | 92 SET(MACOSX_BUNDLE_BUNDLE_VERSION_STRING "${PROJECT_VERSION}") |
92 SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}") | 93 SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}") |
123 if (WIN32) | 124 if (WIN32) |
124 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") | 125 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") |
125 endif(WIN32) | 126 endif(WIN32) |
126 | 127 |
127 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .) | 128 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .) |
128 install(FILES replacements.ini DESTINATION share/apps/${PROJECT_NAME}) | |
129 | 129 |
130 if(APPLE) | 130 if(APPLE) |
131 file(COPY replacements.ini DESTINATION "${PROJECT_NAME}.app/Contents/MacOS/" ) | 131 SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE TRUE) |
132 install(CODE " | 132 install(CODE " |
133 include(BundleUtilities) | 133 include(BundleUtilities) |
134 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\") | 134 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\") |
135 " COMPONENT Runtime) | 135 " COMPONENT Runtime) |
136 endif() | 136 endif() |