Commit 3d6cb33267631cd34480fd89bfd6db09a209af05
Merge branch 'makeTests' of https://github.com/biometrics/openbr into makeTests
Showing
1 changed file
with
3 additions
and
0 deletions
app/examples/CMakeLists.txt
| ... | ... | @@ -5,4 +5,7 @@ foreach(EXAMPLE ${EXAMPLES}) |
| 5 | 5 | qt5_use_modules(${EXAMPLE_BASENAME} ${QT_DEPENDENCIES}) |
| 6 | 6 | target_link_libraries(${EXAMPLE_BASENAME} openbr ${BR_THIRDPARTY_LIBS}) |
| 7 | 7 | install(TARGETS ${EXAMPLE_BASENAME} RUNTIME DESTINATION bin) |
| 8 | + if(BUILD_TESTING) | |
| 9 | + add_test(NAME ${EXAMPLE_BASENAME}_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND ${EXAMPLE_BASENAME}) | |
| 10 | + endif(BUILD_TESTING) | |
| 8 | 11 | endforeach() | ... | ... |