mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add application icon into the executable bundle
This commit is contained in:
parent
9fb9f84a7a
commit
4378f4886a
@ -226,6 +226,18 @@ set( EXE_FILES
|
||||
|
||||
add_executable( ResInsight ${EXE_FILES} )
|
||||
|
||||
# Application icon for MacOS X bundle
|
||||
if (APPLE)
|
||||
add_custom_command (OUTPUT Resources/ResInsight.icns
|
||||
COMMAND sips -s format icns ${CMAKE_CURRENT_SOURCE_DIR}/Resources/AppLogo48x48.png --out ${CMAKE_CURRENT_BINARY_DIR}/Resources/ResInsight.icns
|
||||
COMMENT Converting application icon
|
||||
)
|
||||
add_custom_target (ResInsight-icns
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Resources/ResInsight.icns)
|
||||
add_dependencies (ResInsight ResInsight-icns)
|
||||
set_target_properties (ResInsight PROPERTIES
|
||||
MACOSX_BUNDLE_ICON_FILE ${CMAKE_CURRENT_BINARY_DIR}/Resources/ResInsight.icns)
|
||||
endif ()
|
||||
|
||||
set( LINK_LIBRARIES
|
||||
WellPathImportSsihub
|
||||
|
Loading…
Reference in New Issue
Block a user