Skip to content

Commit

Permalink
Setup app icon (MacOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Mar 15, 2024
1 parent 926a08d commit 7155b52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tools/setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ find_package(JUCE REQUIRED QUIET)
set(MACOSX_BUNDLE_BUNDLE_NAME "Setup EAR Production Suite")
set(MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "ch.ebu.eps_setup")
set(MACOSX_BUNDLE_ICON_FILE "icon.icns")
set(MACOSX_BUNDLE_COPYRIGHT "(C) 2019-2024 BBC, (C) 2020-2021 EBU, (C) 2019-2021 IRT")
add_executable(setup WIN32 MACOSX_BUNDLE)

Expand Down Expand Up @@ -47,17 +48,19 @@ set(SOURCES_SETUP

source_group("Header Files" FILES ${HEADERS_SETUP})

target_sources(setup
PRIVATE
${HEADERS_SETUP}
${SOURCES_SETUP}
)

if(APPLE)
target_sources(setup
PRIVATE
${HEADERS_SETUP}
${SOURCES_SETUP}
icon.icns
)
set_target_properties(setup PROPERTIES
OUTPUT_NAME "Setup EAR Production Suite"
XCODE_ATTRIBUTE_EXECUTABLE_NAME "Setup EAR Production Suite"
MACOSX_BUNDLE TRUE)
set_source_files_properties(icon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/install_list.xml $<TARGET_FILE_DIR:setup>/../Resources/install_list.xml
)
Expand All @@ -66,6 +69,11 @@ if(APPLE)
)
endif()
if(WIN32)
target_sources(setup
PRIVATE
${HEADERS_SETUP}
${SOURCES_SETUP}
)
set_target_properties(setup PROPERTIES
OUTPUT_NAME "setup"
WIN32_EXECUTABLE TRUE)
Expand Down
Binary file added tools/setup/icon.icns
Binary file not shown.

0 comments on commit 7155b52

Please sign in to comment.