From 885438999d5363896217fbf0e8f48105ba3b1d32 Mon Sep 17 00:00:00 2001 From: Ygrik2003 <59407669+Ygrik2003@users.noreply.github.com> Date: Sat, 21 Dec 2024 10:31:02 +0300 Subject: [PATCH] Fix resources --- test/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cbe038a6..4db44b78 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -15,5 +15,17 @@ target_link_libraries( GTest::gtest_main ) +# HACK: copy res to test/ folder for fixing +# problem compatibility MultiConfig and non +# MultiConfig builds. Delete in future and +# use only root res folder +add_custom_command( + TARGET ${PROJECT_NAME} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different + ${CMAKE_SOURCE_DIR}/res + $/res + ) + include(GoogleTest) gtest_discover_tests(${PROJECT_NAME})