Skip to content

Commit 620093a

Browse files
committed
use icns on osx
1 parent 2c84c1b commit 620093a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ set(PROJECT_SOURCES
4141
src/callout.h src/callout.cpp
4242
resources/icons.qrc
4343
${APP_ICON_RESOURCE_WINDOWS}
44+
resources/DataExplorer.icns
4445
)
4546

4647
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
@@ -68,10 +69,12 @@ endif()
6869

6970
target_link_libraries(DataExplorer PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Charts)
7071

72+
set_source_files_properties(resources/DataExplorer.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
7173
set_target_properties(DataExplorer PROPERTIES
7274
MACOSX_BUNDLE_GUI_IDENTIFIER DataExplorer
7375
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
7476
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
77+
MACOSX_BUNDLE_ICON_FILE DataExplorer.icns
7578
MACOSX_BUNDLE TRUE
7679
WIN32_EXECUTABLE TRUE
7780
)

resources/DataExplorer.icns

21.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)