mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Merge topic 'cmake-gui-res' into release-3.19
440ee739c4 cmake-gui: Attach icons only to main GUI executables
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5368
This commit is contained in:
@@ -162,10 +162,10 @@ add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx ${MANIFEST_FILE})
|
||||
target_link_libraries(cmake-gui CMakeGUIMainLib Qt5::Core)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion> CMakeSetup.rc)
|
||||
target_sources(CMakeGUIMainLib INTERFACE $<TARGET_OBJECTS:CMakeVersion> CMakeSetup.rc)
|
||||
endif()
|
||||
if(APPLE)
|
||||
target_sources(CMakeGUILib INTERFACE CMakeSetup.icns)
|
||||
target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.icns)
|
||||
set(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns)
|
||||
set_source_files_properties(CMakeSetup.icns PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION Resources)
|
||||
|
||||
Reference in New Issue
Block a user