Fix resources
This commit is contained in:
parent
fdcc5b68bf
commit
885438999d
@ -15,5 +15,17 @@ target_link_libraries(
|
|||||||
GTest::gtest_main
|
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
|
||||||
|
$<TARGET_FILE_DIR:${PROJECT_NAME}>/res
|
||||||
|
)
|
||||||
|
|
||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
gtest_discover_tests(${PROJECT_NAME})
|
gtest_discover_tests(${PROJECT_NAME})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user