)
# Ensure that "make tests" builds all nblib tests so the top-level
# "make check" will work.
-add_dependencies(tests nblib-tests)
+if (BUILD_TESTING)
+ add_dependencies(tests nblib-tests)
-# this allows all nblib tests to be run with "make check-nblib"
-add_custom_target(check-nblib
- COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R NbLib
- COMMENT "Running nblib tests"
- USES_TERMINAL VERBATIM)
-add_dependencies(check-nblib nblib-tests)
+ # this allows all nblib tests to be run with "make check-nblib"
+ add_custom_target(check-nblib
+ COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R NbLib
+ COMMENT "Running nblib tests"
+ USES_TERMINAL VERBATIM)
+ add_dependencies(check-nblib nblib-tests)
+endif()
set(NBLIB_MAJOR 0)
set(NBLIB_MINOR 1)