Made post-build test running an option.
This commit is contained in:
parent
aeffb7d7c5
commit
b25d111391
|
|
@ -28,6 +28,10 @@ target_link_libraries(unit-tests
|
|||
test-mocks
|
||||
)
|
||||
|
||||
# add_custom_command(TARGET unit-tests POST_BUILD
|
||||
# COMMAND ${unit-tests_BINARY_DIR}/unit-tests
|
||||
# )
|
||||
option(RUN_UNIT_TESTS_IN_POST_BUILD false)
|
||||
|
||||
if (RUN_UNIT_TESTS_IN_POST_BUILD)
|
||||
add_custom_command(TARGET unit-tests POST_BUILD
|
||||
COMMAND ${unit-tests_BINARY_DIR}/unit-tests
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue