Skip to content

Commit

Permalink
Merge pull request #521 from juliantaylor/check-target
Browse files Browse the repository at this point in the history
Don't build tests by default
  • Loading branch information
gervandiepen committed Nov 11, 2016
2 parents 58366ab + bf9c788 commit 6a3a160
Show file tree
Hide file tree
Showing 53 changed files with 78 additions and 62 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,15 @@ if(USE_STACKTRACE)
add_definitions(-DUSE_STACKTRACE)
endif(USE_STACKTRACE)

# Enable cmake testing and add make check target that builds and runs the test
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
# This legacy flag always builds the tests and runs them with make test. There
# seems to be no good way to make test executable depend on the test target
if (NOT BUILD_TESTING)
set(EXCL_ALL EXCLUDE_FROM_ALL)
endif (NOT BUILD_TESTING)

# Add the modules to be built.
add_subdirectory (build-tools)
foreach (module ${_modules})
Expand Down
1 change: 1 addition & 0 deletions casa/Arrays/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/BasicMath/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/BasicSL/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
13 changes: 5 additions & 8 deletions casa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,8 @@ version.h
DESTINATION include/casacore/casa
)

if (BUILD_TESTING)
add_subdirectory (test)
foreach (casa_module Arrays BasicMath BasicSL Containers
Exceptions HDF5 Inputs IO Json Logging OS Quanta System Utilities)
add_subdirectory (${casa_module}/test)
endforeach (casa_module)
endif (BUILD_TESTING)

add_subdirectory (test ${EXCL_ALL})
foreach (casa_module Arrays BasicMath BasicSL Containers
Exceptions HDF5 Inputs IO Json Logging OS Quanta System Utilities)
add_subdirectory (${casa_module}/test ${EXCL_ALL})
endforeach (casa_module)
1 change: 1 addition & 0 deletions casa/Containers/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Exceptions/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/HDF5/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/IO/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Inputs/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Json/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Logging/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/OS/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Quanta/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/System/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/Utilities/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions casa/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_casa)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
5 changes: 1 addition & 4 deletions coordinates/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,4 @@ Coordinates.h
DESTINATION include/casacore/coordinates
)

if (BUILD_TESTING)
add_subdirectory (Coordinates/test)
endif (BUILD_TESTING)

add_subdirectory (Coordinates/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions coordinates/Coordinates/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_coordinates)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
4 changes: 1 addition & 3 deletions derivedmscal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ DerivedMC.h
DESTINATION include/casacore/derivedmscal
)

if (BUILD_TESTING)
add_subdirectory (DerivedMC/test)
endif (BUILD_TESTING)
add_subdirectory (DerivedMC/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions derivedmscal/DerivedMC/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_derivedmscal)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
4 changes: 1 addition & 3 deletions fits/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ target_link_libraries (casa_fits casa_measures ${CFITSIO_LIBRARIES})
add_subdirectory (apps)

#the tests
if (BUILD_TESTING)
add_subdirectory (FITS/test)
endif (BUILD_TESTING)
add_subdirectory (FITS/test ${EXCL_ALL})

install (TARGETS casa_fits
RUNTIME DESTINATION bin
Expand Down
1 change: 1 addition & 0 deletions fits/FITS/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_fits)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
6 changes: 2 additions & 4 deletions images/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,5 @@ Images.h
DESTINATION include/casacore/images
)

if (BUILD_TESTING)
add_subdirectory (Images/test)
add_subdirectory (Regions/test)
endif (BUILD_TESTING)
add_subdirectory (Images/test ${EXCL_ALL})
add_subdirectory (Regions/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions images/Images/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_images)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions images/Regions/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_images)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
13 changes: 4 additions & 9 deletions lattices/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,7 @@ DESTINATION include/casacore/lattices
)

# The tests
if (BUILD_TESTING)
add_subdirectory (Lattices/test)
add_subdirectory (LatticeMath/test)
add_subdirectory (LEL/test)
add_subdirectory (LRegions/test)
endif (BUILD_TESTING)



add_subdirectory (Lattices/test ${EXCL_ALL})
add_subdirectory (LatticeMath/test ${EXCL_ALL})
add_subdirectory (LEL/test ${EXCL_ALL})
add_subdirectory (LRegions/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions lattices/LEL/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_lattices)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions lattices/LRegions/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_lattices)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions lattices/LatticeMath/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_lattices)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions lattices/Lattices/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_lattices)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
4 changes: 1 addition & 3 deletions meas/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ MeasUDF.h
DESTINATION include/casacore/meas
)

if (BUILD_TESTING)
add_subdirectory (MeasUDF/test)
endif (BUILD_TESTING)
add_subdirectory (MeasUDF/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions meas/MeasUDF/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_meas)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
7 changes: 2 additions & 5 deletions measures/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,5 @@ TableMeasures.h
DESTINATION include/casacore/measures
)

if (BUILD_TESTING)
add_subdirectory (Measures/test)
add_subdirectory (TableMeasures/test)
endif (BUILD_TESTING)

add_subdirectory (Measures/test ${EXCL_ALL})
add_subdirectory (TableMeasures/test ${EXCL_ALL})
2 changes: 2 additions & 0 deletions measures/Measures/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_measures)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)

if (SOFA_FOUND)
add_executable (tIAU2000 SofaTest.cc tIAU2000.cc)
target_link_libraries (tIAU2000 casa_measures ${SOFA_LIBRARY})
add_test (tIAU2000 ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./tIAU2000)
add_dependencies(check tIAU2000)
endif (SOFA_FOUND)
1 change: 1 addition & 0 deletions measures/TableMeasures/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_measures)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
8 changes: 3 additions & 5 deletions ms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ MSOper.h
DESTINATION include/casacore/ms
)

if (BUILD_TESTING)
add_subdirectory (MeasurementSets/test)
add_subdirectory (MSSel/test)
add_subdirectory (MSOper/test)
endif (BUILD_TESTING)
add_subdirectory (MeasurementSets/test ${EXCL_ALL})
add_subdirectory (MSSel/test ${EXCL_ALL})
add_subdirectory (MSOper/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions ms/MSOper/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_ms)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions ms/MSSel/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_ms)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions ms/MeasurementSets/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_ms)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
4 changes: 1 addition & 3 deletions msfits/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,4 @@ MSFits.h
DESTINATION include/casacore/msfits
)

if (BUILD_TESTING)
add_subdirectory (MSFits/test)
endif (BUILD_TESTING)
add_subdirectory (MSFits/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions msfits/MSFits/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ foreach (test ${tests})
add_executable (${test} ${test})
target_link_libraries (${test} casa_msfits)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
4 changes: 1 addition & 3 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,4 @@ Converters.h
DESTINATION include/casacore/python
)

if (BUILD_TESTING)
add_subdirectory (Converters/test)
endif (BUILD_TESTING)
add_subdirectory (Converters/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions python/Converters/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ add_library(tConvert MODULE tConvert.cc)
SET_TARGET_PROPERTIES(tConvert PROPERTIES PREFIX "_")
target_link_libraries (tConvert casa_python ${Boost_PYTHON_LIBRARY_DEBUG} ${PYTHON_LIBRARIES})
add_test (tConvert ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./tConvert)
add_dependencies(check tConvert)
9 changes: 3 additions & 6 deletions scimath/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@ Mathematics.h
DESTINATION include/casacore/scimath
)

if (BUILD_TESTING)
add_subdirectory (Fitting/test)
add_subdirectory (Functionals/test)
add_subdirectory (Mathematics/test)
endif (BUILD_TESTING)

add_subdirectory (Fitting/test ${EXCL_ALL})
add_subdirectory (Functionals/test ${EXCL_ALL})
add_subdirectory (Mathematics/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions scimath/Fitting/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_scimath)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions scimath/Functionals/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_scimath)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions scimath/Mathematics/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_scimath)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
10 changes: 4 additions & 6 deletions tables/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,7 @@ Tables/UDFBase.h
DESTINATION include/casacore/tables/Tables
)

if (BUILD_TESTING)
add_subdirectory (Tables/test)
add_subdirectory (DataMan/test)
add_subdirectory (TaQL/test)
add_subdirectory (LogTables/test)
endif (BUILD_TESTING)
add_subdirectory (Tables/test ${EXCL_ALL})
add_subdirectory (DataMan/test ${EXCL_ALL})
add_subdirectory (TaQL/test ${EXCL_ALL})
add_subdirectory (LogTables/test ${EXCL_ALL})
1 change: 1 addition & 0 deletions tables/DataMan/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_tables)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions tables/LogTables/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_tables)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)
1 change: 1 addition & 0 deletions tables/TaQL/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ foreach (test ${tests})
add_executable (${test} ${test}.cc)
target_link_libraries (${test} casa_tables)
add_test (${test} ${CMAKE_SOURCE_DIR}/cmake/cmake_assay ./${test})
add_dependencies(check ${test})
endforeach (test)

foreach (test ${testscripts})
Expand Down
Loading

0 comments on commit 6a3a160

Please sign in to comment.