add application file icon for macos

This commit is contained in:
dushyant basson
2023-09-02 03:38:28 +05:30
parent 7bd08468d6
commit 22b953aba8
34 changed files with 16 additions and 2 deletions
+11
View File
@@ -41,6 +41,16 @@ set(RESOURCE_FILES
resources/qt_res.rc
)
# The MACOSX_BUNDLE_ICON_FILE variable is added to the Info.plist
# generated by CMake. This variable contains the .icns file name,
# without the path.
set(MACOSX_BUNDLE_ICON_FILE ifcosLogo.icns)
# The following tells CMake where to find and install the file itself.
set(app_icon_macos "resources/ifcosLogo.icns")
set_source_files_properties(${app_icon_macos} PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
add_executable(${targetName}
IfcViewerWidget.h
IfcViewerWidget.cpp
@@ -50,6 +60,7 @@ add_executable(${targetName}
MainWindow.cpp
main.cpp
${RESOURCE_FILES}
${app_icon_macos}
)
set_target_properties(${targetName} PROPERTIES