Browse Source

cmake-gui: Restore application icon on Windows

In commit 41e223deb3 (CMake GUI: Split up into libraries, add test shim,
2020-09-14) the Windows resource source file that references the icon
was moved to CMakeGUILib, but it needs to be directly in the main
application in order to be attached properly.
Brad King 5 years ago
parent
commit
f7ae4f572b
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Source/QtDialog/CMakeLists.txt

+ 1 - 5
Source/QtDialog/CMakeLists.txt

@@ -141,10 +141,6 @@ else ()
     ${RC_SRCS})
 endif ()
 
-if(WIN32)
-  list(APPEND SRCS CMakeSetup.rc)
-endif()
-
 if(USE_LGPL)
   install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt
     DESTINATION ${CMAKE_DATA_DIR}/Licenses
@@ -166,7 +162,7 @@ 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>)
+  target_sources(CMakeGUILib INTERFACE $<TARGET_OBJECTS:CMakeVersion> CMakeSetup.rc)
 endif()
 if(APPLE)
   target_sources(CMakeGUILib INTERFACE CMakeSetup.icns)