cmake-gui: Restore embedded version information in Windows binary

Refactoring in commit 89a1e1c1be (Build: Link w/ `OBJECT` library is OK
since 3.12, 2022-08-21, v3.25.0-rc1~97^2~19) dropped the `.res` object
containing this information from the `cmake-gui` link line.  Restore it.
This commit is contained in:
Brad King
2022-11-09 16:54:46 -05:00
parent e242fa19ca
commit ec76a9c22f

View File

@@ -254,12 +254,17 @@ target_link_libraries(
CMakeGUIMainLib
PUBLIC
CMakeGUILib
CMakeGUIQRCLib
$<TARGET_NAME_IF_EXISTS:CMakeVersion>
)
add_executable(cmake-gui WIN32 MACOSX_BUNDLE CMakeGUIExec.cxx)
target_link_libraries(cmake-gui CMakeGUIMainLib ManifestLib Qt${INSTALLED_QT_VERSION}::Core)
target_link_libraries(cmake-gui
PRIVATE
CMakeGUIMainLib
CMakeGUIQRCLib
$<TARGET_NAME_IF_EXISTS:CMakeVersion>
ManifestLib
Qt${INSTALLED_QT_VERSION}::Core
)
if(WIN32)
target_sources(CMakeGUIMainLib INTERFACE CMakeSetup.rc)