mirror of https://github.com/CGAL/cgal
fix compilation on non fully c++2- compliant
This commit is contained in:
parent
c65ed45431
commit
4f0e463912
|
|
@ -51,10 +51,12 @@ target_link_libraries(cdt_3_from_off PRIVATE CDT_3_dependencies)
|
||||||
create_single_source_cgal_program( "cdt_3_from_off_with_Epeck.cpp")
|
create_single_source_cgal_program( "cdt_3_from_off_with_Epeck.cpp")
|
||||||
target_link_libraries(cdt_3_from_off_with_Epeck PRIVATE CDT_3_dependencies)
|
target_link_libraries(cdt_3_from_off_with_Epeck PRIVATE CDT_3_dependencies)
|
||||||
|
|
||||||
add_executable(cdt_3_from_off_CGAL_DEBUG_CDT_3 cdt_3_from_off)
|
if(cxx_std_20 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
||||||
target_compile_definitions(cdt_3_from_off_CGAL_DEBUG_CDT_3 PRIVATE CGAL_DEBUG_CDT_3=255)
|
add_executable(cdt_3_from_off_CGAL_DEBUG_CDT_3 cdt_3_from_off)
|
||||||
target_link_libraries(cdt_3_from_off_CGAL_DEBUG_CDT_3 PRIVATE CDT_3_dependencies)
|
target_compile_definitions(cdt_3_from_off_CGAL_DEBUG_CDT_3 PRIVATE CGAL_DEBUG_CDT_3=255)
|
||||||
cgal_add_test(cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
target_link_libraries(cdt_3_from_off_CGAL_DEBUG_CDT_3 PRIVATE CDT_3_dependencies)
|
||||||
|
cgal_add_test(cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(test_CDT_3_insert_constrained_edge_from_EDG_file cdt_test_insert_constrained_edge_from_EDG_file.cpp)
|
add_executable(test_CDT_3_insert_constrained_edge_from_EDG_file cdt_test_insert_constrained_edge_from_EDG_file.cpp)
|
||||||
target_link_libraries(test_CDT_3_insert_constrained_edge_from_EDG_file PRIVATE CDT_3_dependencies)
|
target_link_libraries(test_CDT_3_insert_constrained_edge_from_EDG_file PRIVATE CDT_3_dependencies)
|
||||||
|
|
@ -151,9 +153,11 @@ CGAL_add_cdt3_from_local_off_test(error_mesh-p_not_equal_0-min2)
|
||||||
|
|
||||||
include(./Thingi10k-CDT.cmake)
|
include(./Thingi10k-CDT.cmake)
|
||||||
|
|
||||||
add_test(NAME "execution of cdt_3_from_off_CGAL_DEBUG_CDT_3 3torus" COMMAND cdt_3_from_off_CGAL_DEBUG_CDT_3 ${CGAL_DATA_DIR}/meshes/3torus.off)
|
if(cxx_std_20 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
||||||
cgal_add_compilation_test(cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
add_test(NAME "execution of cdt_3_from_off_CGAL_DEBUG_CDT_3 3torus" COMMAND cdt_3_from_off_CGAL_DEBUG_CDT_3 ${CGAL_DATA_DIR}/meshes/3torus.off)
|
||||||
cgal_setup_test_properties("execution of cdt_3_from_off_CGAL_DEBUG_CDT_3 3torus" cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
cgal_add_compilation_test(cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
||||||
|
cgal_setup_test_properties("execution of cdt_3_from_off_CGAL_DEBUG_CDT_3 3torus" cdt_3_from_off_CGAL_DEBUG_CDT_3)
|
||||||
|
endif()
|
||||||
|
|
||||||
get_directory_property(all_tests TESTS)
|
get_directory_property(all_tests TESTS)
|
||||||
foreach(test ${all_tests})
|
foreach(test ${all_tests})
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
#if defined(CGAL_DEBUG_CDT_3) && !__has_include(<format>)
|
||||||
|
#undef CGAL_DEBUG_CDT_3
|
||||||
|
#endif
|
||||||
|
|
||||||
// #define CGAL_CDT_2_DEBUG_INTERSECTIONS 1
|
// #define CGAL_CDT_2_DEBUG_INTERSECTIONS 1
|
||||||
#define NO_TRY_CATCH 1
|
#define NO_TRY_CATCH 1
|
||||||
// #define CGAL_DEBUG_CDT_3 1
|
// #define CGAL_DEBUG_CDT_3 1
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
#if __has_include(<format>)
|
||||||
#define CGAL_DEBUG_CDT_3 1
|
#define CGAL_DEBUG_CDT_3 1
|
||||||
|
#endif
|
||||||
#define CGAL_TRIANGULATION_CHECK_EXPENSIVE 1
|
#define CGAL_TRIANGULATION_CHECK_EXPENSIVE 1
|
||||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||||
#include <CGAL/Delaunay_triangulation_3.h>
|
#include <CGAL/Delaunay_triangulation_3.h>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
#if __has_include(<format>)
|
||||||
#define CGAL_DEBUG_CDT_3 1
|
#define CGAL_DEBUG_CDT_3 1
|
||||||
|
#endif
|
||||||
#define CGAL_TRIANGULATION_CHECK_EXPENSIVE 1
|
#define CGAL_TRIANGULATION_CHECK_EXPENSIVE 1
|
||||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||||
#include <CGAL/Delaunay_triangulation_3.h>
|
#include <CGAL/Delaunay_triangulation_3.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue