star-geometry-3d

Clean and decorate 3D geometries
git clone git://git.meso-star.fr/star-geometry-3d.git
Log | Files | Refs | README | LICENSE

commit 94fc4340b6fe54977cf9ee1b057ddaae161fa3c7
parent ccd59b607c25fbcf327197cfd51b3e916fbd74e0
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 23 Jun 2020 11:28:22 +0200

Build optional tests even if not active

Diffstat:
Mcmake/CMakeLists.txt | 66+++++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 39 insertions(+), 27 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -39,7 +39,7 @@ millions of triangles" OFF find_package(RCMake 0.4 REQUIRED) find_package(RSys 0.8.1 REQUIRED) -if(SMALL_ADDITIONAL_TESTS OR HUGE_ADDITIONAL_TESTS) +if(NOT NO_TEST) find_package(Star3DUT 0.3.1 REQUIRED) endif() @@ -50,8 +50,8 @@ include(rcmake_runtime) include_directories( ${RSys_INCLUDE_DIR} ${StarEnc_INCLUDE_DIR}) - -if(SMALL_ADDITIONAL_TESTS OR HUGE_ADDITIONAL_TESTS) + +if(NOT NO_TEST) rcmake_append_runtime_dirs(_runtime_dirs RSys StarEnc Star3DUT) else() rcmake_append_runtime_dirs(_runtime_dirs RSys StarEnc) @@ -146,38 +146,50 @@ if(NOT NO_TEST) new_test(test_sg3d_geometry) new_test(test_sg3d_geometry_2) + build_test(test_sg3d_cube_behind_cube) + build_test(test_sg3d_cube_in_cube) + build_test(test_sg3d_cube_on_cube) + build_test(test_sg3d_invalid_models) + build_test(test_sg3d_some_enclosures test_sg3d_utils2.h) + build_test(test_sg3d_some_triangles test_sg3d_utils2.h) + build_test(test_sg3d_unspecified_properties) + + build_test(test_sg3d_many_enclosures test_sg3d_utils2.h) + build_test(test_sg3d_many_triangles test_sg3d_utils2.h) + + target_link_libraries(test_sg3d_some_enclosures Star3DUT) + target_link_libraries(test_sg3d_some_triangles Star3DUT) + target_link_libraries(test_sg3d_many_enclosures Star3DUT) + target_link_libraries(test_sg3d_many_triangles Star3DUT) + rcmake_copy_runtime_libraries(test_sg3d_device) rcmake_copy_runtime_libraries(test_sg3d_geometry) rcmake_copy_runtime_libraries(test_sg3d_geometry_2) + rcmake_copy_runtime_libraries(test_sg3d_cube_behind_cube) + rcmake_copy_runtime_libraries(test_sg3d_cube_in_cube) + rcmake_copy_runtime_libraries(test_sg3d_cube_on_cube) + rcmake_copy_runtime_libraries(test_sg3d_invalid_models) + rcmake_copy_runtime_libraries(test_sg3d_some_enclosures) + rcmake_copy_runtime_libraries(test_sg3d_some_triangles) + rcmake_copy_runtime_libraries(test_sg3d_unspecified_properties) + + rcmake_copy_runtime_libraries(test_sg3d_many_enclosures) + rcmake_copy_runtime_libraries(test_sg3d_many_triangles) + if(SMALL_ADDITIONAL_TESTS) - new_test(test_sg3d_cube_behind_cube) - new_test(test_sg3d_cube_in_cube) - new_test(test_sg3d_cube_on_cube) - new_test(test_sg3d_some_enclosures test_sg3d_utils2.h) - new_test(test_sg3d_some_triangles test_sg3d_utils2.h) - new_test(test_sg3d_unspecified_properties) - - target_link_libraries(test_sg3d_some_enclosures Star3DUT) - target_link_libraries(test_sg3d_some_triangles Star3DUT) - - rcmake_copy_runtime_libraries(test_sg3d_cube_behind_cube) - rcmake_copy_runtime_libraries(test_sg3d_cube_in_cube) - rcmake_copy_runtime_libraries(test_sg3d_cube_on_cube) - rcmake_copy_runtime_libraries(test_sg3d_some_enclosures) - rcmake_copy_runtime_libraries(test_sg3d_some_triangles) - rcmake_copy_runtime_libraries(test_sg3d_unspecified_properties) + add_test(test_sg3d_cube_behind_cube test_sg3d_cube_behind_cube) + add_test(test_sg3d_cube_in_cube test_sg3d_cube_in_cube) + add_test(test_sg3d_cube_on_cube test_sg3d_cube_on_cube) + add_test(test_sg3d_invalid_models test_sg3d_invalid_models) + add_test(test_sg3d_some_enclosures test_sg3d_some_enclosures) + add_test(test_sg3d_some_triangles test_sg3d_some_triangles) + add_test(test_sg3d_unspecified_properties test_sg3d_unspecified_properties) endif() if(HUGE_ADDITIONAL_TESTS) - new_test(test_sg3d_many_enclosures test_sg3d_utils2.h) - new_test(test_sg3d_many_triangles test_sg3d_utils2.h) - - target_link_libraries(test_sg3d_many_enclosures Star3DUT) - target_link_libraries(test_sg3d_many_triangles Star3DUT) - - rcmake_copy_runtime_libraries(test_sg3d_many_enclosures) - rcmake_copy_runtime_libraries(test_sg3d_many_triangles) + add_test(test_sg3d_many_enclosures test_sg3d_many_enclosures) + add_test(test_sg3d_many_triangles test_sg3d_many_triangles) endif() endif()