Skip to content

Commit cf3a2c4

Browse files
committed
Fix icon not being correctly copied on macOS
1 parent 297acc1 commit cf3a2c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,18 @@ endif()
103103
add_executable(tev ${TEV_SOURCES})
104104

105105
if (APPLE)
106+
set(RESOURCE_FILES
107+
resources/icon.icns
108+
scripts/osx-run-tev.sh
109+
)
110+
106111
set_target_properties(tev PROPERTIES
107112
MACOSX_BUNDLE TRUE
108113
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/resources/Info.plist"
109114
MACOSX_BUNDLE_BUNDLE_VERSION ${VERSION}
110115
MACOSX_BUNDLE_SHORT_VERSION_STRING ${VERSION}
111116
MACOSX_BUNDLE_LONG_VERSION_STRING ${VERSION}
112-
RESOURCE resources/icon.icns
113-
RESOURCE scripts/osx-run-tev.sh
117+
RESOURCE "${RESOURCE_FILES}"
114118
)
115119
endif()
116120

0 commit comments

Comments
 (0)