mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 11:43:43 +00:00
add application file icon for macos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user