mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
Exclude some tests from runnig with ctest (only compile them)
This commit is contained in:
parent
fbd158a7ea
commit
e45fa580ee
@ -21,7 +21,7 @@ function(boost_geometry_add_unit_test prefix item)
|
|||||||
set(unit_test_name "boost_geometry_${prefix}_${item}")
|
set(unit_test_name "boost_geometry_${prefix}_${item}")
|
||||||
add_executable(${unit_test_name} ${item}.cpp)
|
add_executable(${unit_test_name} ${item}.cpp)
|
||||||
|
|
||||||
# Add a dependendcy to Boost.Geometry
|
# Add a dependency to Boost.Geometry
|
||||||
target_link_libraries(${unit_test_name}
|
target_link_libraries(${unit_test_name}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
Boost::geometry)
|
Boost::geometry)
|
||||||
@ -42,7 +42,10 @@ function(boost_geometry_add_unit_test prefix item)
|
|||||||
target_compile_features(${unit_test_name} PRIVATE cxx_std_14)
|
target_compile_features(${unit_test_name} PRIVATE cxx_std_14)
|
||||||
|
|
||||||
# To be able to run ctest
|
# To be able to run ctest
|
||||||
add_test(NAME ${unit_test_name} COMMAND ${unit_test_name})
|
if (NOT ("boost_geometry_${prefix}_${item}" STREQUAL "boost_geometry_cs_undefined_setops1") AND
|
||||||
|
NOT ("boost_geometry_${prefix}_${item}" STREQUAL "boost_geometry_cs_undefined_setops2"))
|
||||||
|
add_test(NAME ${unit_test_name} COMMAND ${unit_test_name})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Add a dependency to the global tests target
|
# Add a dependency to the global tests target
|
||||||
add_dependencies(tests ${unit_test_name})
|
add_dependencies(tests ${unit_test_name})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user