Skip to content

Commit 04340e8

Browse files
committed
improve
1 parent cb65b7f commit 04340e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/cmake/unit_tests.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ if(NOT TARGET test)
4040
add_custom_target(test)
4141
endif()
4242

43-
add_custom_command(TARGET test
43+
add_custom_target(test-${PROJECT_NAME})
44+
add_dependencies(test test-${PROJECT_NAME})
45+
46+
add_custom_command(TARGET test-${PROJECT_NAME}
4447
POST_BUILD
4548
COMMAND
4649
$<TARGET_FILE:${PROJECT_NAME}-tests>

0 commit comments

Comments
 (0)