2016-06-19 15:25:58 +00:00
|
|
|
set(test_targets "")
|
|
|
|
|
2016-06-17 11:38:32 +00:00
|
|
|
add_subdirectory(common)
|
2016-06-19 15:25:58 +00:00
|
|
|
|
|
|
|
add_custom_target(check
|
|
|
|
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
|
2016-06-19 16:28:34 +00:00
|
|
|
COMMAND ${CMAKE_SOURCE_DIR}/test/runner "${CMAKE_BINARY_DIR}")
|
|
|
|
|
|
|
|
if(enable-coverage)
|
|
|
|
find_program(GCOV_PATH gcov)
|
|
|
|
find_program(LCOV_PATH lcov)
|
|
|
|
find_program(GENHTML_PATH genhtml)
|
|
|
|
if(NOT GCOV_PATH)
|
|
|
|
MESSAGE(FATAL_ERROR "gcov not found! Aborting...")
|
|
|
|
endif()
|
|
|
|
if(NOT LCOV_PATH)
|
|
|
|
MESSAGE(FATAL_ERROR "gcov not found! Aborting...")
|
|
|
|
endif()
|
|
|
|
if(NOT GENHTML_PATH)
|
|
|
|
MESSAGE(FATAL_ERROR "gcov not found! Aborting...")
|
|
|
|
endif()
|
|
|
|
endif()
|