star-geometry-2d

Cleaning and decorating 2D geometries
git clone git://git.meso-star.fr/star-geometry-2d.git
Log | Files | Refs | README | LICENSE

commit 6f8a4568b043815779212c73e53bda5fe0e632e6
parent 498042b0d936cfe0373fd0d53071341d01cd01c2
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 23 Jun 2020 11:37:17 +0200

Build optional tests even if not active

Diffstat:
Mcmake/CMakeLists.txt | 48+++++++++++++++++++++++++++++-------------------
1 file changed, 29 insertions(+), 19 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -133,37 +133,47 @@ if(NOT NO_TEST) build_test(${_name} ${ARGN}) register_test(${_name} ${_name}) endfunction() - + new_test(test_sg2d_device) new_test(test_sg2d_geometry) new_test(test_sg2d_geometry_2) + build_test(test_sg2d_square_behind_square) + build_test(test_sg2d_square_in_square) + build_test(test_sg2d_square_on_square) + build_test(test_sg2d_some_enclosures test_sg2d_utils2.h) + build_test(test_sg2d_some_segments test_sg2d_utils2.h) + build_test(test_sg2d_unspecified_properties) + + build_test(test_sg2d_many_enclosures test_sg2d_utils2.h) + build_test(test_sg2d_many_segments test_sg2d_utils2.h) + rcmake_copy_runtime_libraries(test_sg2d_device) rcmake_copy_runtime_libraries(test_sg2d_geometry) rcmake_copy_runtime_libraries(test_sg2d_geometry_2) - if(SMALL_ADDITIONAL_TESTS) - new_test(test_sg2d_square_behind_square) - new_test(test_sg2d_square_in_square) - new_test(test_sg2d_square_on_square) - new_test(test_sg2d_some_enclosures test_sg2d_utils2.h) - new_test(test_sg2d_some_segments test_sg2d_utils2.h) - new_test(test_sg2d_unspecified_properties) + rcmake_copy_runtime_libraries(test_sg2d_square_behind_square) + rcmake_copy_runtime_libraries(test_sg2d_square_in_square) + rcmake_copy_runtime_libraries(test_sg2d_square_on_square) + rcmake_copy_runtime_libraries(test_sg2d_some_enclosures) + rcmake_copy_runtime_libraries(test_sg2d_some_segments) + rcmake_copy_runtime_libraries(test_sg2d_unspecified_properties) - rcmake_copy_runtime_libraries(test_sg2d_square_behind_square) - rcmake_copy_runtime_libraries(test_sg2d_square_in_square) - rcmake_copy_runtime_libraries(test_sg2d_square_on_square) - rcmake_copy_runtime_libraries(test_sg2d_some_enclosures) - rcmake_copy_runtime_libraries(test_sg2d_some_segments) - rcmake_copy_runtime_libraries(test_sg2d_unspecified_properties) + rcmake_copy_runtime_libraries(test_sg2d_many_enclosures) + rcmake_copy_runtime_libraries(test_sg2d_many_segments) + + if(SMALL_ADDITIONAL_TESTS) + add_test(test_sg2d_square_behind_square test_sg2d_square_behind_square) + add_test(test_sg2d_square_in_square test_sg2d_square_in_square) + add_test(test_sg2d_square_on_square test_sg2d_square_on_square) + add_test(test_sg2d_some_enclosures test_sg2d_some_enclosures) + add_test(test_sg2d_some_segments test_sg2d_some_segments) + add_test(test_sg2d_unspecified_properties test_sg2d_unspecified_properties) endif() if(HUGE_ADDITIONAL_TESTS) - new_test(test_sg2d_many_enclosures test_sg2d_utils2.h) - new_test(test_sg2d_many_segments test_sg2d_utils2.h) - - rcmake_copy_runtime_libraries(test_sg2d_many_enclosures) - rcmake_copy_runtime_libraries(test_sg2d_many_segments) + add_test(test_sg2d_many_enclosures test_sg2d_many_enclosures) + add_test(test_sg2d_many_segments test_sg2d_many_segments) endif() endif()