fixed: make sure test-suite target exists for tests added as satellites

needed by the 'check' target and as a means to build tests if
BUILD_TESTING is off
This commit is contained in:
Arne Morten Kvarving
2015-05-27 10:01:09 +02:00
parent 33ea6f157c
commit f23305009e

View File

@@ -96,6 +96,10 @@ macro (opm_compile_satellites opm satellite excl_all test_regexp)
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/${${satellite}_DIR}
)
endif (CMAKE_VERSION VERSION_LESS "2.8.4")
if(NOT TARGET test-suite)
add_custom_target(test-suite)
endif()
add_dependencies(test-suite "${_sat_NAME}")
endif(NOT "${test_regexp}" STREQUAL "")
# if this program on the list of files that should be distributed?