adopted for MacOSX bundles.
This commit is contained in:
parent
591540cef7
commit
48fd3fa082
@ -80,11 +80,21 @@ qt5_wrap_ui(out_ui ${musredit_ui})
|
|||||||
# add qt/rcc
|
# add qt/rcc
|
||||||
qt5_add_resources(musredit_rcc musredit.qrc)
|
qt5_add_resources(musredit_rcc musredit.qrc)
|
||||||
|
|
||||||
add_executable(musredit
|
set(macosx_icon icons/musredit.icns)
|
||||||
${musredit_src}
|
if (APPLE)
|
||||||
${out_ui}
|
add_executable(musredit MACOSX_BUNDLE
|
||||||
${musredit_rcc}
|
${musredit_src}
|
||||||
)
|
${out_ui}
|
||||||
|
${musredit_rcc}
|
||||||
|
${macosx_icon}
|
||||||
|
)
|
||||||
|
else (APPLE)
|
||||||
|
add_executable(musredit
|
||||||
|
${musredit_src}
|
||||||
|
${out_ui}
|
||||||
|
${musredit_rcc}
|
||||||
|
)
|
||||||
|
endif (APPLE)
|
||||||
|
|
||||||
if (Qt5WebEngine_FOUND)
|
if (Qt5WebEngine_FOUND)
|
||||||
target_compile_options(musredit
|
target_compile_options(musredit
|
||||||
@ -105,12 +115,28 @@ target_include_directories(musredit
|
|||||||
target_link_libraries(musredit ${qt_libs})
|
target_link_libraries(musredit ${qt_libs})
|
||||||
|
|
||||||
#--- installation info --------------------------------------------------------
|
#--- installation info --------------------------------------------------------
|
||||||
install(
|
if (APPLE)
|
||||||
TARGETS
|
set_target_properties(musredit PROPERTIES
|
||||||
musredit
|
MACOSX_BUNDLE TRUE
|
||||||
RUNTIME DESTINATION
|
MACOSX_BUNDLE_BUNDLE_NAME "musredit"
|
||||||
bin
|
MACOSX_BUNDLE_INFO_STRING "musredit simplifies the handling of the msr-files for uSR fitting."
|
||||||
)
|
MACOSX_BUNDLE_ICON_FILE "musredit.icns"
|
||||||
|
MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}"
|
||||||
|
MACOSX_FRAMEWORK_IDENTIFIER ch.psi.musredit
|
||||||
|
MACOSX_BUNDLE_COPYRIGHT "Andreas Suter"
|
||||||
|
RESOURCE ${macosx_icon}
|
||||||
|
)
|
||||||
|
endif (APPLE)
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
install( TARGETS musredit
|
||||||
|
BUNDLE DESTINATION /Applications
|
||||||
|
)
|
||||||
|
else (APPLE)
|
||||||
|
install( TARGETS musredit
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
)
|
||||||
|
endif (APPLE)
|
||||||
|
|
||||||
#--- documentation installation info ------------------------------------------
|
#--- documentation installation info ------------------------------------------
|
||||||
install(
|
install(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user