File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}../../ FILES ${MAIN_SOURCES})
2034
2034
2035
2035
if (APPLE )
2036
2036
# TODO: set up the correct application icon
2037
- # set(SerialPrograms_ICON ${CMAKE_CURRENT_SOURCE_DIR}/../Resources /icon.icns)
2037
+ set (SerialPrograms_ICON ${CMAKE_CURRENT_SOURCE_DIR} /../IconResource /icon.icns)
2038
2038
# set_source_files_properties(SerialPrograms_ICON PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
2039
2039
2040
2040
# Links on how to create a MacOS app bundle with cmake
@@ -2047,9 +2047,10 @@ if (APPLE)
2047
2047
MACOSX_BUNDLE_BUNDLE_NAME SerialPrograms
2048
2048
MACOSX_BUNDLE_BUNDLE_VERSION "0.1"
2049
2049
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.1"
2050
- # MACOSX_BUNDLE_ICON_FILE icon
2050
+ MACOSX_BUNDLE_ICON_FILE " icon.icns"
2051
2051
# MacOSXBundleInfo.plist.in is modified from https://github.com/Kitware/CMake/blob/master/Modules/MacOSXBundleInfo.plist.in
2052
2052
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR} /cmake/MacOSXBundleInfo.plist.in
2053
+ RESOURCE ${SerialPrograms_ICON}
2053
2054
)
2054
2055
else () # WIN and Linux:
2055
2056
add_executable (SerialPrograms WIN32 ${MAIN_SOURCES} )
You can’t perform that action at this time.
0 commit comments