aboutsummaryrefslogtreecommitdiff
path: root/test/platform
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-19 16:53:09 +0800
committerGitHub <noreply@github.com>2022-01-19 16:53:09 +0800
commita42609c6cc6d89501d0421f371e4a2dc10dd1685 (patch)
treee485183935a1c9b82e341f2d8fe03363d4fe4843 /test/platform
parentbcd603a2f3f3e8525f15df1faa85ed1fcbe3a220 (diff)
parent60bef51d804f8bdb5f1f17b82e43e54c1e71de36 (diff)
downloadcru-a42609c6cc6d89501d0421f371e4a2dc10dd1685.tar.gz
cru-a42609c6cc6d89501d0421f371e4a2dc10dd1685.tar.bz2
cru-a42609c6cc6d89501d0421f371e4a2dc10dd1685.zip
Merge pull request #46 from crupest/dev
Fix fxxking Windows CI.
Diffstat (limited to 'test/platform')
-rw-r--r--test/platform/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/platform/CMakeLists.txt b/test/platform/CMakeLists.txt
index 9414e2b8..5feec2d1 100644
--- a/test/platform/CMakeLists.txt
+++ b/test/platform/CMakeLists.txt
@@ -4,4 +4,11 @@ add_executable(cru_platform_base_test
)
target_link_libraries(cru_platform_base_test PRIVATE cru_platform_base cru_test_base)
+if (WIN32)
+ add_custom_command(TARGET cru_platform_base_test POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:cru_platform_base_test> $<TARGET_FILE_DIR:cru_platform_base_test>
+ COMMAND_EXPAND_LISTS
+ )
+endif()
+
gtest_discover_tests(cru_platform_base_test)