mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-28 09:58:53 -06:00
cmake-gui: Restore application icon on macOS
In commit 41e223deb3 (CMake GUI: Split up into libraries, add test shim,
2020-09-14) the macOS icon source file was moved to CMakeGUILib, but it
needs to be directly in the main application in order to be attached to
the `.app` in the right place.
This commit is contained in:
@@ -144,12 +144,6 @@ endif ()
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND SRCS CMakeSetup.rc)
|
list(APPEND SRCS CMakeSetup.rc)
|
||||||
endif()
|
endif()
|
||||||
if(APPLE)
|
|
||||||
list(APPEND SRCS CMakeSetup.icns)
|
|
||||||
set(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns)
|
|
||||||
set_source_files_properties(CMakeSetup.icns PROPERTIES
|
|
||||||
MACOSX_PACKAGE_LOCATION Resources)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(USE_LGPL)
|
if(USE_LGPL)
|
||||||
install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt
|
install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt
|
||||||
@@ -174,6 +168,12 @@ target_link_libraries(cmake-gui CMakeGUIMainLib Qt5::Core)
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion>)
|
target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion>)
|
||||||
endif()
|
endif()
|
||||||
|
if(APPLE)
|
||||||
|
target_sources(CMakeGUILib INTERFACE CMakeSetup.icns)
|
||||||
|
set(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns)
|
||||||
|
set_source_files_properties(CMakeSetup.icns PROPERTIES
|
||||||
|
MACOSX_PACKAGE_LOCATION Resources)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMake_JOB_POOL_LINK_BIN)
|
if(CMake_JOB_POOL_LINK_BIN)
|
||||||
set_property(TARGET cmake-gui PROPERTY JOB_POOL_LINK "link-bin")
|
set_property(TARGET cmake-gui PROPERTY JOB_POOL_LINK "link-bin")
|
||||||
|
|||||||
Reference in New Issue
Block a user