Add application icon into the executable bundle

This commit is contained in:
Roland Kaufmann committed 2015-01-01 19:46:25 +01:00
1 parent 9fb9f84a7a
commit 4378f4886a
1 file changed
+12
+12
View File
@@ -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