Tests/CMakeGUI: Place test executable in main bin directory

`cmSystemTools::FindCMakeResources` needs this to find the main `cmake`
executable.  Previously `FindCMakeResourcesInBuildTree` was finding the
rest of the resources by accident because `Tests/CMakeGUI` has the same
number of components as `bin/<config>`.
This commit is contained in:
Brad King
2026-03-04 15:30:27 -05:00
parent 011d94ec22
commit 795f7c27c7
+1
View File
@@ -50,6 +50,7 @@ else()
)
endif()
add_executable(CMakeGUITest CMakeGUITest.cxx ${MOC_SRCS})
set_property(TARGET CMakeGUITest PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMake_BIN_DIR}")
target_link_libraries(CMakeGUITest CMakeGUIMainLib CMakeGUITestLib
Qt${CMake_QT_MAJOR_VERSION}::Core
Qt${CMake_QT_MAJOR_VERSION}::Test