Skip to content

Commit

Permalink
Make test builds faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 19, 2025
1 parent 0f0a7ed commit 2c2cc74
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ foreach(test IN LISTS tests)
target_link_libraries(
${test}
PRIVATE
js_static
js_shared
)

add_test(
Expand All @@ -219,6 +219,13 @@ foreach(test IN LISTS tests)
TIMEOUT 30
)

add_custom_command(
TARGET ${test}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:${test}> $<TARGET_RUNTIME_DLLS:${test}>
COMMAND_EXPAND_LISTS
)

if(${test} IN_LIST skipped_tests)
set_tests_properties(
${test}
Expand Down

0 comments on commit 2c2cc74

Please sign in to comment.