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
|
test-mocks
|
||||||
)
|
)
|
||||||
|
|
||||||
# add_custom_command(TARGET unit-tests POST_BUILD
|
option(RUN_UNIT_TESTS_IN_POST_BUILD false)
|
||||||
# COMMAND ${unit-tests_BINARY_DIR}/unit-tests
|
|
||||||
# )
|
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