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})