diff --git a/CMakeLists.txt b/CMakeLists.txt index 11a6617..10a8cba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,9 +277,13 @@ if(WIN32) endif() if(APPLE) + target_sources(${EXECUTABLE_NAME} PUBLIC "os/macos/fallout2-ce.icns") + set_source_files_properties("os/macos/fallout2-ce.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") + set_target_properties(${EXECUTABLE_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/os/macos/Info.plist") set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.alexbatalov.fallout2-ce") set(MACOSX_BUNDLE_BUNDLE_NAME "${EXECUTABLE_NAME}") + set(MACOSX_BUNDLE_ICON_FILE "fallout2-ce.icns") set(MACOSX_BUNDLE_DISPLAY_NAME "Fallout 2") endif() diff --git a/os/macos/fallout2-ce.icns b/os/macos/fallout2-ce.icns new file mode 100644 index 0000000..3911a6e Binary files /dev/null and b/os/macos/fallout2-ce.icns differ