From f695a65aada93948639938fe3036168394b18c4f Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 15 Aug 2024 20:28:23 +0200 Subject: [PATCH] UnitTests: Delete output Sys folder before copying to it Like the previous commit, but for UnitTests. This time all operating systems were affected. I also made UnitTests.vcxproj use the same way of copying as DolphinQt.vcxproj, just for consistency. --- Source/UnitTests/CMakeLists.txt | 1 + Source/UnitTests/UnitTests.vcxproj | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Source/UnitTests/CMakeLists.txt b/Source/UnitTests/CMakeLists.txt index 96f26a8793..659d9e5b28 100644 --- a/Source/UnitTests/CMakeLists.txt +++ b/Source/UnitTests/CMakeLists.txt @@ -9,6 +9,7 @@ set_target_properties(tests PROPERTIES FOLDER Tests) target_link_libraries(tests PRIVATE fmt::fmt gtest::gtest core uicommon) add_test(NAME tests COMMAND tests) add_custom_command(TARGET tests POST_BUILD + COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys" COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/Data/Sys" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys" ) add_dependencies(unittests tests) diff --git a/Source/UnitTests/UnitTests.vcxproj b/Source/UnitTests/UnitTests.vcxproj index 229e5b576f..48b85bfdf3 100644 --- a/Source/UnitTests/UnitTests.vcxproj +++ b/Source/UnitTests/UnitTests.vcxproj @@ -24,9 +24,6 @@ Console - - xcopy /i /e /s /y /f "$(ProjectDir)\..\..\Data\Sys\" "$(TargetDir)Sys" - @@ -109,7 +106,15 @@ - + + + + + + + + +