mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-29 21:32:44 +00:00
Setup CMake to have 'check' target like autoconf
This setups the CMake build system to have the same `make check` functionality as the autoconf build system
This commit is contained in:
parent
1559155e7d
commit
b2154b3e81
@ -44,6 +44,7 @@ endif()
|
||||
|
||||
if (ELFIO_BUILD_TESTS AND IS_TOP_PROJECT)
|
||||
enable_testing()
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} USES_TERMINAL)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
|
@ -43,4 +43,4 @@ add_test(
|
||||
WORKING_DIRECTORY
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_custom_target(check DEPENDS test)
|
||||
add_dependencies(check ELFIOTest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user