From 2c2cc74f6e0ff52d78a06cf246d7acba6540e659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Wed, 19 Feb 2025 22:10:12 +0100 Subject: [PATCH] Make test builds faster --- test/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2fb9d93..9a8bfb5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -204,7 +204,7 @@ foreach(test IN LISTS tests) target_link_libraries( ${test} PRIVATE - js_static + js_shared ) add_test( @@ -219,6 +219,13 @@ foreach(test IN LISTS tests) TIMEOUT 30 ) + add_custom_command( + TARGET ${test} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy -t $ $ + COMMAND_EXPAND_LISTS + ) + if(${test} IN_LIST skipped_tests) set_tests_properties( ${test}