mirror of https://github.com/CGAL/cgal
Uniformize message() for missing 3rd party libraries
STATUS for non-essential, NOTICE for important stuff
This commit is contained in:
parent
28ba446895
commit
7cb21c24b0
|
|
@ -12,6 +12,8 @@ find_package(benchmark)
|
||||||
if (benchmark_FOUND)
|
if (benchmark_FOUND)
|
||||||
create_single_source_cgal_program("tree_creation.cpp")
|
create_single_source_cgal_program("tree_creation.cpp")
|
||||||
target_link_libraries(tree_creation benchmark::benchmark)
|
target_link_libraries(tree_creation benchmark::benchmark)
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: The benchmark 'tree_creation.cpp' requires the Google benchmark library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
create_single_source_cgal_program("test.cpp")
|
create_single_source_cgal_program("test.cpp")
|
||||||
create_single_source_cgal_program("tree_construction.cpp")
|
create_single_source_cgal_program("tree_construction.cpp")
|
||||||
|
|
|
||||||
|
|
@ -73,9 +73,6 @@ else(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
|
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${AABB_MISSING_DEPS}, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${AABB_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ if(MPFI_FOUND AND NOT CGAL_DISABLE_GMP)
|
||||||
create_single_source_cgal_program("Sign_at_1.cpp")
|
create_single_source_cgal_program("Sign_at_1.cpp")
|
||||||
create_single_source_cgal_program("Solve_1.cpp")
|
create_single_source_cgal_program("Solve_1.cpp")
|
||||||
else()
|
else()
|
||||||
message(STATUS "This program requires the CGAL, CGAL_Core and MPFI libraries, and will not be compiled.")
|
message("NOTICE: This project requires the MPFI library and GMP support, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -52,14 +52,13 @@ if(NOT CGAL_DISABLE_GMP)
|
||||||
create_single_source_cgal_program("Curve_analysis_2.cpp")
|
create_single_source_cgal_program("Curve_analysis_2.cpp")
|
||||||
create_single_source_cgal_program("Curve_pair_analysis_2.cpp")
|
create_single_source_cgal_program("Curve_pair_analysis_2.cpp")
|
||||||
create_single_source_cgal_program("Real_embeddable_traits_extension.cpp")
|
create_single_source_cgal_program("Real_embeddable_traits_extension.cpp")
|
||||||
|
|
||||||
if(RS_FOUND)
|
if(RS_FOUND)
|
||||||
create_single_source_cgal_program("Algebraic_kernel_rs_gmpq_d_1.cpp")
|
create_single_source_cgal_program("Algebraic_kernel_rs_gmpq_d_1.cpp")
|
||||||
create_single_source_cgal_program("Algebraic_kernel_rs_gmpz_d_1.cpp")
|
create_single_source_cgal_program("Algebraic_kernel_rs_gmpz_d_1.cpp")
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Some tests require the RS library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Some tests require the RS library, and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: Some tests require the CGAL_Core library, and will not be compiled.")
|
message(STATUS "NOTICE: Some tests require GMP support, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -27,16 +27,13 @@ if(GMP_FOUND)
|
||||||
# version needs GMP>=4.2, so we require this dependency only here and
|
# version needs GMP>=4.2, so we require this dependency only here and
|
||||||
# not in FindMPFI.cmake
|
# not in FindMPFI.cmake
|
||||||
if(_IS_GMP_VERSION_TO_LOW)
|
if(_IS_GMP_VERSION_TO_LOW)
|
||||||
message(
|
message(STATUS "NOTICE: MPFI tests need GMP>=4.2, some of the tests will not be compiled")
|
||||||
STATUS
|
|
||||||
"MPFI tests need GMP>=4.2, some of the tests will not be compiled")
|
|
||||||
else(_IS_GMP_VERSION_TO_LOW)
|
else(_IS_GMP_VERSION_TO_LOW)
|
||||||
include(${MPFI_USE_FILE})
|
include(${MPFI_USE_FILE})
|
||||||
create_single_source_cgal_program("GMP_arithmetic_kernel.cpp")
|
create_single_source_cgal_program("GMP_arithmetic_kernel.cpp")
|
||||||
endif(_IS_GMP_VERSION_TO_LOW)
|
endif(_IS_GMP_VERSION_TO_LOW)
|
||||||
else(MPFI_FOUND)
|
else(MPFI_FOUND)
|
||||||
message(
|
message(STATUS "NOTICE: MPFI is not present, some of the tests will not be compiled.")
|
||||||
STATUS "MPFI is not present, some of the tests will not be compiled.")
|
|
||||||
endif(MPFI_FOUND)
|
endif(MPFI_FOUND)
|
||||||
|
|
||||||
create_single_source_cgal_program("Arithmetic_kernel.cpp")
|
create_single_source_cgal_program("Arithmetic_kernel.cpp")
|
||||||
|
|
@ -46,7 +43,6 @@ if(GMP_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This project requires GMP support, and will not be compiled.")
|
||||||
STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,5 @@ else()
|
||||||
if(NOT Qt5_FOUND)
|
if(NOT Qt5_FOUND)
|
||||||
set(MISSING_DEPS "Qt5, ${MISSING_DEPS}")
|
set(MISSING_DEPS "Qt5, ${MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS
|
message("NOTICE: This demo requires ${MISSING_DEPS} and will not be compiled.")
|
||||||
"NOTICE: This demo requires ${MISSING_DEPS} and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -41,4 +41,6 @@ endif()
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program("TriMesh.cpp")
|
create_single_source_cgal_program("TriMesh.cpp")
|
||||||
target_link_libraries(TriMesh PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(TriMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
|
else()
|
||||||
|
message("NOTICE: This project requires OpenMesh and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ if(OpenMesh_FOUND)
|
||||||
target_link_libraries( copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES} )
|
target_link_libraries( copy_polyhedron PRIVATE ${OPENMESH_LIBRARIES} )
|
||||||
target_compile_definitions( copy_polyhedron PRIVATE -DCGAL_USE_OPENMESH )
|
target_compile_definitions( copy_polyhedron PRIVATE -DCGAL_USE_OPENMESH )
|
||||||
else()
|
else()
|
||||||
message(STATUS "Examples that use OpenMesh will not be compiled.")
|
message(STATUS "NOTICE: The example 'copy_polyhedron' requires OpenMesh, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package( METIS )
|
find_package( METIS )
|
||||||
|
|
@ -50,5 +50,5 @@ if( TARGET CGAL::METIS_support )
|
||||||
create_single_source_cgal_program( "polyhedron_partition.cpp" )
|
create_single_source_cgal_program( "polyhedron_partition.cpp" )
|
||||||
target_link_libraries( polyhedron_partition PUBLIC CGAL::METIS_support)
|
target_link_libraries( polyhedron_partition PUBLIC CGAL::METIS_support)
|
||||||
else()
|
else()
|
||||||
message( STATUS "Examples that use the METIS library will not be compiled." )
|
message(STATUS "NOTICE: The example 'polyhedron_partition' requires the METIS library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,5 @@ if( TARGET CGAL::METIS_support )
|
||||||
create_single_source_cgal_program( "surface_mesh_partition.cpp" )
|
create_single_source_cgal_program( "surface_mesh_partition.cpp" )
|
||||||
target_link_libraries( surface_mesh_partition PUBLIC CGAL::METIS_support )
|
target_link_libraries( surface_mesh_partition PUBLIC CGAL::METIS_support )
|
||||||
else()
|
else()
|
||||||
message(STATUS "Examples that use the METIS library will not be compiled.")
|
message(STATUS "NOTICE: Examples that use the METIS library will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -118,5 +118,5 @@ if(3MF_LIBRARIES AND 3MF_INCLUDE_DIR AND EXISTS "${3MF_INCLUDE_DIR}/Model/COM/N
|
||||||
target_link_libraries(test_3mf_to_sm PRIVATE ${3MF_LIBRARIES})
|
target_link_libraries(test_3mf_to_sm PRIVATE ${3MF_LIBRARIES})
|
||||||
target_compile_definitions(test_3mf_to_sm PRIVATE -DCGAL_LINKED_WITH_3MF)
|
target_compile_definitions(test_3mf_to_sm PRIVATE -DCGAL_LINKED_WITH_3MF)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : This program requires the lib3MF library, and will not be compiled.")
|
message(STATUS "NOTICE: The test 'test_3mf_to_sm' requires the lib3MF library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,10 @@ create_single_source_cgal_program("benchmark_mv_34_vertices.cpp")
|
||||||
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
create_single_source_cgal_program("benchmark_hm_4_vertices.cpp")
|
create_single_source_cgal_program("benchmark_hm_4_vertices.cpp")
|
||||||
target_link_libraries(benchmark_hm_4_vertices PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(benchmark_hm_4_vertices PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("benchmark_hm_n_vertices.cpp")
|
create_single_source_cgal_program("benchmark_hm_n_vertices.cpp")
|
||||||
target_link_libraries(benchmark_hm_n_vertices PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(benchmark_hm_n_vertices PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
message(STATUS "NOTICE: Several benchmarks require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,12 @@ create_single_source_cgal_program("deprecated_coordinates.cpp")
|
||||||
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) # (3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
create_single_source_cgal_program("affine_coordinates.cpp")
|
create_single_source_cgal_program("affine_coordinates.cpp")
|
||||||
target_link_libraries(affine_coordinates PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(affine_coordinates PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("harmonic_coordinates.cpp")
|
create_single_source_cgal_program("harmonic_coordinates.cpp")
|
||||||
target_link_libraries(harmonic_coordinates PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(harmonic_coordinates PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("shape_deformation.cpp")
|
create_single_source_cgal_program("shape_deformation.cpp")
|
||||||
target_link_libraries(shape_deformation PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(shape_deformation PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
message(STATUS "NOTICE: Several examples require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -56,5 +56,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("test_bc_all_coordinates.cpp")
|
create_single_source_cgal_program("test_bc_all_coordinates.cpp")
|
||||||
target_link_libraries(test_bc_all_coordinates PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(test_bc_all_coordinates PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
message(STATUS "NOTICE: Several tests require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,5 @@ endforeach()
|
||||||
if(CGAL_Qt5_FOUND)
|
if(CGAL_Qt5_FOUND)
|
||||||
target_link_libraries(draw_polygon_set PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(draw_polygon_set PUBLIC CGAL::CGAL_Basic_viewer)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The example 'draw_polygon_set' requires Qt and drawing will be disabled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The example draw_polygon_set requires Qt and drawing will be disabled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,5 @@ create_single_source_cgal_program("test_Has_member_report.cpp")
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(test_box_grid PUBLIC CGAL::TBB_support)
|
target_link_libraries(test_box_grid PUBLIC CGAL::TBB_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB was not found. Sequential code will be used.")
|
||||||
STATUS "NOTICE: Intel TBB was not found. Sequential code will be used.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,5 @@ find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||||
if(WITH_CGAL_ImageIO)
|
if(WITH_CGAL_ImageIO)
|
||||||
create_single_source_cgal_program("test_trilinear_interpolation.cpp")
|
create_single_source_cgal_program("test_trilinear_interpolation.cpp")
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This project requires the CGAL_ImageIO library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Some tests require the CGAL_ImageIO library, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -25,17 +25,14 @@ include(${CGAL_USE_FILE})
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires the Eigen library, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(IPE 7)
|
find_package(IPE 7)
|
||||||
if(IPE_FOUND)
|
if(IPE_FOUND)
|
||||||
if ( NOT ${IPE_VERSION} EQUAL "7")
|
if(NOT ${IPE_VERSION} EQUAL "7")
|
||||||
message("-- Error: ${IPE_VERSION} is not a supported version of IPE (only 7 is).")
|
message("NOTICE: ${IPE_VERSION} is not a supported version of IPE (only 7 is).")
|
||||||
set(IPE_FOUND FALSE)
|
set(IPE_FOUND FALSE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -117,5 +114,5 @@ if(IPE_FOUND AND IPE_VERSION)
|
||||||
cgal_add_compilation_test(simple_triangulation)
|
cgal_add_compilation_test(simple_triangulation)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: This program requires the Ipe include files and library, and will not be compiled.")
|
message("NOTICE: This project requires the Ipe include files and library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -23,17 +23,12 @@ include(CGAL_Boost_serialization_support)
|
||||||
include(CGAL_Boost_iostreams_support)
|
include(CGAL_Boost_iostreams_support)
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Boost_serialization_support)
|
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||||
message(
|
message("NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
|
||||||
)
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Boost_iostreams_support)
|
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||||
message(
|
message("NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
|
||||||
)
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -49,8 +44,7 @@ endif()
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,26 +23,19 @@ include(CGAL_Boost_serialization_support)
|
||||||
include(CGAL_Boost_iostreams_support)
|
include(CGAL_Boost_iostreams_support)
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Boost_serialization_support)
|
if(NOT TARGET CGAL::Boost_serialization_support)
|
||||||
message(
|
message("NOTICE: This project requires Boost Serialization, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Boost Serialization, and will not be compiled."
|
|
||||||
)
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Boost_iostreams_support)
|
if(NOT TARGET CGAL::Boost_iostreams_support)
|
||||||
message(
|
message("NOTICE: This project requires Boost IO Streams, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Boost IO Streams, and will not be compiled."
|
|
||||||
)
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
set(Classification_dependencies_met FALSE)
|
set(Classification_dependencies_met FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,5 @@ if(CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
create_single_source_cgal_program("${cppfile}")
|
create_single_source_cgal_program("${cppfile}")
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This program requires the CGAL_Core library (or LEDA), and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"This program requires the CGAL_Core library (or LEDA), and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -52,4 +52,6 @@ if(OpenMesh_FOUND)
|
||||||
|
|
||||||
target_link_libraries(quickhull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(quickhull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
target_link_libraries(dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(dynamic_hull_OM_3 PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Examples that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,5 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Alpha_shapes_2)
|
cgal_add_compilation_test(Alpha_shapes_2)
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Apollonius_graph_2)
|
cgal_add_compilation_test(Apollonius_graph_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
cgal_add_compilation_test(Generator_2)
|
cgal_add_compilation_test(Generator_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
cgal_add_compilation_test(min)
|
cgal_add_compilation_test(min)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
cgal_add_compilation_test(Largest_empty_rectangle_2)
|
cgal_add_compilation_test(Largest_empty_rectangle_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
cgal_add_compilation_test(Periodic_2_Delaunay_triangulation_2)
|
cgal_add_compilation_test(Periodic_2_Delaunay_triangulation_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,7 @@ find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5 Core)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This demo requires the Eigen library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires the Eigen library, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -60,10 +57,5 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Polygon_2)
|
cgal_add_compilation_test(Polygon_2)
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL, CGAL_Core, and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires CGAL, CGAL_Core, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Segment_voronoi_2)
|
cgal_add_compilation_test(Segment_voronoi_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,5 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Segment_voronoi_linf_2)
|
cgal_add_compilation_test(Segment_voronoi_linf_2)
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(Snap_rounding_2)
|
cgal_add_compilation_test(Snap_rounding_2)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
cgal_add_compilation_test(Spatial_searching_2)
|
cgal_add_compilation_test(Spatial_searching_2)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL, and Qt5, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
|
||||||
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
find_package(Qt5 QUIET COMPONENTS Widgets)
|
find_package(Qt5 QUIET COMPONENTS Widgets)
|
||||||
|
|
||||||
if(NOT CGAL_Qt5_FOUND
|
if(NOT CGAL_Qt5_FOUND OR NOT Qt5_FOUND)
|
||||||
OR NOT Qt5_FOUND)
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,8 @@ endif()
|
||||||
|
|
||||||
find_package(Eigen3 3.3.0)
|
find_package(Eigen3 3.3.0)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: These examples require the Eigen library (3.3 or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"This project requires the Eigen library (3.3 or greater), and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,7 @@ endif()
|
||||||
find_package(Eigen3 3.3.0)
|
find_package(Eigen3 3.3.0)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: These tests require the Eigen library (3.3 or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"This project requires the Eigen library (3.3 or greater), and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,5 @@ if(CGAL_Qt5_FOUND
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test( HDT2 )
|
cgal_add_compilation_test( HDT2 )
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This demo requires CGAL_Core (or LEDA), and Qt5 and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires CGAL, CGAL_Core (or LEDA), and Qt5 and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ include(GNUInstallDirs)
|
||||||
|
|
||||||
if(CGAL_BRANCH_BUILD)
|
if(CGAL_BRANCH_BUILD)
|
||||||
|
|
||||||
message(
|
message(STATUS "Build CGAL from ${CGAL_SCM_NAME}-branch: ${CGAL_SCM_BRANCH_NAME}")
|
||||||
STATUS "Build CGAL from ${CGAL_SCM_NAME}-branch: ${CGAL_SCM_BRANCH_NAME}")
|
|
||||||
|
|
||||||
# list packages
|
# list packages
|
||||||
file(
|
file(
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ if(libpointmatcher_FOUND AND NOT TARGET CGAL::pointmatcher_support)
|
||||||
target_include_directories(CGAL::pointmatcher_support INTERFACE "${libpointmatcher_INCLUDE_DIR}")
|
target_include_directories(CGAL::pointmatcher_support INTERFACE "${libpointmatcher_INCLUDE_DIR}")
|
||||||
target_link_libraries(CGAL::pointmatcher_support INTERFACE ${libpointmatcher_LIBRARIES})
|
target_link_libraries(CGAL::pointmatcher_support INTERFACE ${libpointmatcher_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : the libpointmatcher library requires the following boost components: thread filesystem system program_options date_time chrono.")
|
message(STATUS "NOTICE: the libpointmatcher library requires the following boost components: thread filesystem system program_options date_time chrono.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ find_package(CGAL REQUIRED)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
# Link with Boost.ProgramOptions (optional)
|
# Link with Boost.ProgramOptions (optional)
|
||||||
find_package(Boost QUIET COMPONENTS program_options)
|
find_package(Boost QUIET COMPONENTS program_options)
|
||||||
|
|
||||||
if(Boost_PROGRAM_OPTIONS_FOUND)
|
if(Boost_PROGRAM_OPTIONS_FOUND)
|
||||||
create_single_source_cgal_program("Mesh_estimation.cpp")
|
create_single_source_cgal_program("Mesh_estimation.cpp")
|
||||||
target_link_libraries(Mesh_estimation PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(Mesh_estimation PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
@ -22,18 +22,12 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(Mesh_estimation PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
target_link_libraries(Mesh_estimation PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The example 'Mesh_estimation' requires Boost Program Options, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Boost Program Options and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program("Single_estimation.cpp")
|
create_single_source_cgal_program("Single_estimation.cpp")
|
||||||
target_link_libraries(Single_estimation PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(Single_estimation PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: These examples require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("blind_1pt.cpp")
|
create_single_source_cgal_program("blind_1pt.cpp")
|
||||||
target_link_libraries(blind_1pt PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(blind_1pt PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,7 @@ if(NOT
|
||||||
(CGAL_Qt5_FOUND
|
(CGAL_Qt5_FOUND
|
||||||
AND Qt5_FOUND))
|
AND Qt5_FOUND))
|
||||||
|
|
||||||
message(STATUS "NOTICE: This demo requires CGAL, "
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
"and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ endif()
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message( STATUS "NOTICE: All examples need the Eigen3 library, and will not be compiled." )
|
message("NOTICE: All examples require the Eigen3 library, and will not be compiled.")
|
||||||
return()
|
return()
|
||||||
endif() #CGAL::Eigen_3_support
|
endif()
|
||||||
|
|
||||||
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage NO_MODULE)
|
find_package(VTK QUIET COMPONENTS vtkImagingGeneral vtkIOImage NO_MODULE)
|
||||||
if(VTK_FOUND)
|
if(VTK_FOUND)
|
||||||
|
|
@ -166,21 +166,15 @@ if(TARGET CGAL::CGAL_ImageIO)
|
||||||
target_link_libraries(mesh_3D_weighted_image
|
target_link_libraries(mesh_3D_weighted_image
|
||||||
PUBLIC CGAL::Eigen3_support CGAL::ITK_support)
|
PUBLIC CGAL::Eigen3_support CGAL::ITK_support)
|
||||||
else(ITK_FOUND)
|
else(ITK_FOUND)
|
||||||
message(STATUS "NOTICE: The examples that need ITK will not be compiled.")
|
message(STATUS "NOTICE: The examples that need ITK will not be compiled.")
|
||||||
endif(ITK_FOUND)
|
endif(ITK_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The examples mesh_3D_image.cpp, mesh_3D_weighted_image.cpp, mesh_3D_image_variable_size.cpp, mesh_optimization_example.cpp and mesh_optimization_lloyd_example.cpp need CGAL_ImageIO to be configured with ZLIB support, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The examples mesh_3D_image.cpp, mesh_3D_weighted_image.cpp, mesh_3D_image_variable_size.cpp, mesh_optimization_example.cpp and mesh_optimization_lloyd_example.cpp need CGAL_ImageIO to be configured with ZLIB support, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Some examples need the CGAL_ImageIO library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Some examples need the CGAL_ImageIO library, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TARGET CGAL::TBB_support)
|
if(CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TARGET CGAL::TBB_support)
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ cmake_minimum_required(VERSION 3.1...3.23)
|
||||||
project(NewKernel_d_Tests)
|
project(NewKernel_d_Tests)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCCX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4)
|
if(CMAKE_COMPILER_IS_GNUCCX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4)
|
||||||
message(
|
message("NOTICE: this directory requires a version of gcc >= 4.4, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: this directory requires a version of gcc >= 4.4, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -28,10 +25,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: These programs require the Eigen3 library, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: These programs require the Eigen3 library, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,7 @@ include(${CGAL_USE_FILE})
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@ find_package(CGAL REQUIRED)
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@ find_package(CGAL REQUIRED)
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,14 +33,10 @@ find_path(
|
||||||
DOC "Path to the header of the CImg library")
|
DOC "Path to the header of the CImg library")
|
||||||
|
|
||||||
if(CIMG_INCLUDE_DIR)
|
if(CIMG_INCLUDE_DIR)
|
||||||
message(
|
message(STATUS "NOTICE: CImg library found, the demo can load point set from image files.")
|
||||||
STATUS "CImg library found, the demo can load point set from image files.")
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "CImg library was not found, the demo will not be able to load point set from image files. "
|
||||||
STATUS
|
"Try setting the environment variable CIMG_INC_DIR to point to the path of the directory containing CImg.h.")
|
||||||
"CImg library was not found, the demo will not be able to load point set from image files. "
|
|
||||||
"Try setting the environment variable CIMG_INC_DIR to point to the path of the directory containing CImg.h."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
@ -105,10 +101,7 @@ else(
|
||||||
set(OTR2_MISSING_DEPS "Qt5.4, ${OTR2_MISSING_DEPS}")
|
set(OTR2_MISSING_DEPS "Qt5.4, ${OTR2_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${OTR2_MISSING_DEPS} and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${OTR2_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif(
|
endif(
|
||||||
CGAL_Qt5_FOUND
|
CGAL_Qt5_FOUND
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,7 @@ find_package(CGAL REQUIRED COMPONENTS ImageIO)
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,9 +97,6 @@ else()
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${PERIODIC_TRIANGULATION_MISSING_DEPS}and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${PERIODIC_TRIANGULATION_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -92,9 +92,6 @@ else(CGAL_Qt5_FOUND
|
||||||
"${CGAL_QCOLLECTIONGENERATOR_TARGET}, ${PERIODIC_LLOYD_MISSING_DEPS}")
|
"${CGAL_QCOLLECTIONGENERATOR_TARGET}, ${PERIODIC_LLOYD_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${PERIODIC_LLOYD_MISSING_DEPS} and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${PERIODIC_LLOYD_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,5 @@ if((CGAL_Core_FOUND OR LEDA_FOUND)
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
|
||||||
cgal_add_compilation_test(P4HDT2)
|
cgal_add_compilation_test(P4HDT2)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: This demo requires Qt5 and will not be compiled.")
|
message("NOTICE: This demo requires Qt5 and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,6 @@ find_package(LEDA QUIET)
|
||||||
if((CGAL_Core_FOUND OR LEDA_FOUND))
|
if((CGAL_Core_FOUND OR LEDA_FOUND))
|
||||||
|
|
||||||
create_single_source_cgal_program("p4ht2_example_insertion.cpp")
|
create_single_source_cgal_program("p4ht2_example_insertion.cpp")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This program requires the CGAL library, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,6 @@ if((CGAL_Core_FOUND OR LEDA_FOUND))
|
||||||
create_single_source_cgal_program("test_p4ht2_removal_iterator.cpp")
|
create_single_source_cgal_program("test_p4ht2_removal_iterator.cpp")
|
||||||
create_single_source_cgal_program("test_p4ht2_removal.cpp")
|
create_single_source_cgal_program("test_p4ht2_removal.cpp")
|
||||||
create_single_source_cgal_program("test_p4ht2_insert_degenerate.cpp")
|
create_single_source_cgal_program("test_p4ht2_insert_degenerate.cpp")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This program requires the CGAL library and the GMP library, and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"This program requires the CGAL library and the GMP library, and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ include(CGAL_Eigen3_support)
|
||||||
if(EIGEN3_FOUND)
|
if(EIGEN3_FOUND)
|
||||||
create_single_source_cgal_program("point_set_algo.cpp")
|
create_single_source_cgal_program("point_set_algo.cpp")
|
||||||
target_link_libraries(point_set_algo PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(point_set_algo PUBLIC CGAL::Eigen3_support)
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: The example 'point_set_algo' requires the Eigen library, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program("draw_point_set_3.cpp")
|
create_single_source_cgal_program("draw_point_set_3.cpp")
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@ if(NOT MSVC_VERSION OR (MSVC_VERSION GREATER_EQUAL 1919 AND MSVC_VERSION LESS 1
|
||||||
if (TARGET CGAL::LASLIB_support)
|
if (TARGET CGAL::LASLIB_support)
|
||||||
target_link_libraries(test_deprecated_io_ps PUBLIC CGAL::LASLIB_support)
|
target_link_libraries(test_deprecated_io_ps PUBLIC CGAL::LASLIB_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : the LAS reader test requires LASlib and will not be compiled.")
|
message(STATUS "NOTICE: the LAS reader test requires LASlib, and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : the LAS reader does not work with Visual Studio 2017.")
|
message(STATUS "NOTICE: the LAS reader does not work with Visual Studio 2017.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,7 @@ if(TARGET CGAL::LASLIB_support)
|
||||||
create_single_source_cgal_program("read_las_example.cpp")
|
create_single_source_cgal_program("read_las_example.cpp")
|
||||||
target_link_libraries(read_las_example PRIVATE ${CGAL_libs} CGAL::LASLIB_support)
|
target_link_libraries(read_las_example PRIVATE ${CGAL_libs} CGAL::LASLIB_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the LAS reader example requires LASlib and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the LAS reader test requires LASlib and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Use Eigen
|
# Use Eigen
|
||||||
|
|
@ -102,11 +100,9 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(registration_with_pointmatcher PRIVATE ${CGAL_libs}
|
target_link_libraries(registration_with_pointmatcher PRIVATE ${CGAL_libs}
|
||||||
CGAL::pointmatcher_support)
|
CGAL::pointmatcher_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: registration with pointmatcher requires libpointmatcher and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the registration_with_pointmatcher test requires libpointmatcher and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Executables that require OpenGR
|
# Executables that require OpenGR
|
||||||
find_package(OpenGR QUIET)
|
find_package(OpenGR QUIET)
|
||||||
include(CGAL_OpenGR_support)
|
include(CGAL_OpenGR_support)
|
||||||
|
|
@ -115,10 +111,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(registration_with_OpenGR PRIVATE ${CGAL_libs}
|
target_link_libraries(registration_with_OpenGR PRIVATE ${CGAL_libs}
|
||||||
CGAL::OpenGR_support)
|
CGAL::OpenGR_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: registration_with_OpenGR requires OpenGR, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : registration_with_OpenGR requires OpenGR, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Executables that require both libpointmatcher and OpenGR
|
# Executables that require both libpointmatcher and OpenGR
|
||||||
|
|
@ -129,15 +122,9 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
registration_with_opengr_pointmatcher_pipeline PRIVATE ${CGAL_libs}
|
registration_with_opengr_pointmatcher_pipeline PRIVATE ${CGAL_libs}
|
||||||
CGAL::pointmatcher_support CGAL::OpenGR_support)
|
CGAL::pointmatcher_support CGAL::OpenGR_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: registration with OpenGR and pointmatcher requires both libpointmatcher and OpenGR, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : registration_with_opengr_pointmatcher_pipeline requires libpointmatcher and OpenGR, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Some of the executables in this directory require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Some of the executables in this directory need Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -46,10 +46,10 @@ if(NOT MSVC_VERSION OR (MSVC_VERSION GREATER_EQUAL 1919 AND MSVC_VERSION LESS 1
|
||||||
target_link_libraries(test_read_write_point_set PUBLIC ${CGAL_libs} CGAL::LASLIB_support)
|
target_link_libraries(test_read_write_point_set PUBLIC ${CGAL_libs} CGAL::LASLIB_support)
|
||||||
target_link_libraries(test_deprecated_io_point_set PUBLIC ${CGAL_libs} CGAL::LASLIB_support)
|
target_link_libraries(test_deprecated_io_point_set PUBLIC ${CGAL_libs} CGAL::LASLIB_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : the LAS reader test requires LASlib and will not be compiled.")
|
message(STATUS "NOTICE: the LAS reader test requires LASlib and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : the LAS reader does not work with Visual Studio 2017.")
|
message(STATUS "NOTICE: the LAS reader does not work with Visual Studio 2017.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Use Eigen
|
# Use Eigen
|
||||||
|
|
@ -76,10 +76,7 @@ if (EIGEN3_FOUND)
|
||||||
create_single_source_cgal_program("jet_pointer_as_property_map.cpp")
|
create_single_source_cgal_program("jet_pointer_as_property_map.cpp")
|
||||||
target_link_libraries(jet_pointer_as_property_map PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(jet_pointer_as_property_map PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Some tests require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
|
|
@ -92,4 +89,6 @@ if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
target_link_libraries(${target} PUBLIC CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Tests are not using TBB.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("tutorial_example.cpp")
|
create_single_source_cgal_program("tutorial_example.cpp")
|
||||||
target_link_libraries(tutorial_example PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(tutorial_example PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: The examples require Eigen 3.1 (or greater) will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The examples need Eigen 3.1 (or greater) will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ include(CGAL_METIS_support)
|
||||||
if(TARGET CGAL::METIS_support)
|
if(TARGET CGAL::METIS_support)
|
||||||
target_link_libraries(hausdorff_bounded_error_distance_example PUBLIC CGAL::METIS_support)
|
target_link_libraries(hausdorff_bounded_error_distance_example PUBLIC CGAL::METIS_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Tests, which use the METIS library will not be compiled.")
|
message(STATUS "NOTICE: Examples that use the METIS library will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(TBB)
|
find_package(TBB)
|
||||||
|
|
@ -152,12 +152,13 @@ if(TARGET CGAL::TBB_support)
|
||||||
create_single_source_cgal_program("corefinement_parallel_union_meshes.cpp")
|
create_single_source_cgal_program("corefinement_parallel_union_meshes.cpp")
|
||||||
target_link_libraries(corefinement_parallel_union_meshes PUBLIC CGAL::TBB_support)
|
target_link_libraries(corefinement_parallel_union_meshes PUBLIC CGAL::TBB_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB was not found. Sequential code will be used.")
|
||||||
STATUS "NOTICE: Intel TBB was not found. Sequential code will be used.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Ceres QUIET)
|
find_package(Ceres QUIET)
|
||||||
include(CGAL_Ceres_support)
|
include(CGAL_Ceres_support)
|
||||||
if(TARGET CGAL::Ceres_support)
|
if(TARGET CGAL::Ceres_support)
|
||||||
target_link_libraries(mesh_smoothing_example PUBLIC CGAL::Ceres_support)
|
target_link_libraries(mesh_smoothing_example PUBLIC CGAL::Ceres_support)
|
||||||
endif(TARGET CGAL::Ceres_support)
|
else()
|
||||||
|
message(STATUS "NOTICE: The example 'mesh_smoothing_example' uses the Ceres library, and will not be compiled.")
|
||||||
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ include(CGAL_METIS_support)
|
||||||
if(TARGET CGAL::METIS_support)
|
if(TARGET CGAL::METIS_support)
|
||||||
target_link_libraries(test_hausdorff_bounded_error_distance PUBLIC CGAL::METIS_support)
|
target_link_libraries(test_hausdorff_bounded_error_distance PUBLIC CGAL::METIS_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Tests, which use the METIS library will not be compiled.")
|
message(STATUS "NOTICE: Tests are not using METIS.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
|
|
@ -127,15 +127,14 @@ if(TARGET CGAL::TBB_support)
|
||||||
target_link_libraries(self_intersection_surface_mesh_test
|
target_link_libraries(self_intersection_surface_mesh_test
|
||||||
PUBLIC CGAL::TBB_support)
|
PUBLIC CGAL::TBB_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB was not found. Tests will use sequential code.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Intel TBB was not found. test_pmp_distance will use sequential code."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program("remeshing_test_P_SM_OM.cpp")
|
create_single_source_cgal_program("remeshing_test_P_SM_OM.cpp")
|
||||||
target_link_libraries(remeshing_test_P_SM_OM PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(remeshing_test_P_SM_OM PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Tests that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Ceres QUIET)
|
find_package(Ceres QUIET)
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,7 @@ endif()
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -41,10 +38,7 @@ if(NOT TARGET CGAL::SCIP_support)
|
||||||
find_package(GLPK QUIET)
|
find_package(GLPK QUIET)
|
||||||
include(CGAL_GLPK_support)
|
include(CGAL_GLPK_support)
|
||||||
if(NOT TARGET CGAL::GLPK_support)
|
if(NOT TARGET CGAL::GLPK_support)
|
||||||
message(
|
message("NOTICE: This project requires either SCIP or GLPK, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires either SCIP or GLPK, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,7 @@ endif()
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -41,10 +38,7 @@ if(NOT TARGET CGAL::SCIP_support)
|
||||||
find_package(GLPK QUIET)
|
find_package(GLPK QUIET)
|
||||||
include(CGAL_GLPK_support)
|
include(CGAL_GLPK_support)
|
||||||
if(NOT TARGET CGAL::GLPK_support)
|
if(NOT TARGET CGAL::GLPK_support)
|
||||||
message(
|
message("NOTICE: This project requires either SCIP or GLPK, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires either SCIP or GLPK, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -56,9 +56,7 @@ set_package_properties(
|
||||||
Qt5 PROPERTIES
|
Qt5 PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
PURPOSE "Enables the 3D Features, for GUI and visualization."
|
PURPOSE "Enables the 3D Features, for GUI and visualization."
|
||||||
DESCRIPTION
|
DESCRIPTION "To find this package, it should be sufficient to fill the Qt5_DIR variable with: <Qt_dir>/<Qt_version>/<Compilator>/lib/cmake/Qt5")
|
||||||
"To find this package, it should be sufficient to fill the Qt5_DIR variable with : <Qt_dir>/<Qt_version>/<Compilator>/lib/cmake/Qt5"
|
|
||||||
)
|
|
||||||
|
|
||||||
if(Qt5_FOUND)
|
if(Qt5_FOUND)
|
||||||
add_definitions(-DQT_NO_KEYWORDS)
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
|
|
@ -68,18 +66,19 @@ endif(Qt5_FOUND)
|
||||||
find_package(Eigen3 3.2.0) #(requires 3.2.0 or greater)
|
find_package(Eigen3 3.2.0) #(requires 3.2.0 or greater)
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
Eigen3 PROPERTIES
|
Eigen3 PROPERTIES
|
||||||
DESCRIPTION "A library for mathematical tools."
|
DESCRIPTION "A library for linear algebra."
|
||||||
PURPOSE
|
PURPOSE "Required for most plugins (Meshing, Mesh and Point Set Processing, etc.).")
|
||||||
"Requiered for the Polyhedron Edit, Parameterization, Jet fitting, Classification plugin, Surface reconstruction, Normal estimation, Smoothing, Average spacing, Feature detection, Hole Filling and Fairing plugins ."
|
|
||||||
)
|
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
|
message(STATUS "NOTICE: Eigen was not found.")
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(METIS)
|
find_package(METIS)
|
||||||
include(CGAL_METIS_support)
|
include(CGAL_METIS_support)
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
METIS PROPERTIES
|
METIS PROPERTIES
|
||||||
DESCRIPTION "A library for partitioning."
|
DESCRIPTION "A library for graph partitioning."
|
||||||
PURPOSE "Requiered for the partition plugin.")
|
PURPOSE "Required for the partition plugin.")
|
||||||
|
|
||||||
# Activate concurrency?
|
# Activate concurrency?
|
||||||
option(POLYHEDRON_DEMO_ACTIVATE_CONCURRENCY "Enable concurrency" ON)
|
option(POLYHEDRON_DEMO_ACTIVATE_CONCURRENCY "Enable concurrency" ON)
|
||||||
|
|
@ -87,10 +86,7 @@ if(POLYHEDRON_DEMO_ACTIVATE_CONCURRENCY)
|
||||||
find_package(TBB)
|
find_package(TBB)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
if(NOT TARGET CGAL::TBB_support)
|
if(NOT TARGET CGAL::TBB_support)
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB was not found. Bilateral smoothing and WLOP plugins are faster if TBB is linked.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Intel TBB was not found. Bilateral smoothing and WLOP plugins are faster if TBB is linked."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -98,11 +94,10 @@ endif()
|
||||||
find_package(LibSSH)
|
find_package(LibSSH)
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
LibSSH PROPERTIES
|
LibSSH PROPERTIES
|
||||||
DESCRIPTION "A library used to enable the SSH features. "
|
DESCRIPTION "A library implementing the SSH protocol on client and server side. "
|
||||||
PURPOSE "Requiered for loading (saving) a scene to (from) a distant server.")
|
PURPOSE "Required for loading (saving) a scene to (from) a distant server.")
|
||||||
|
|
||||||
if(NOT LIBSSH_FOUND)
|
if(NOT LIBSSH_FOUND)
|
||||||
message("NOTICE : The SSH features will be disabled.")
|
message(STATUS "NOTICE: The SSH features will be disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Activate concurrency ? (turned OFF by default)
|
# Activate concurrency ? (turned OFF by default)
|
||||||
|
|
@ -115,15 +110,11 @@ if(CGAL_ACTIVATE_CONCURRENT_MESH_3 OR "$ENV{CGAL_ACTIVATE_CONCURRENT_MESH_3}")
|
||||||
find_package(TBB REQUIRED)
|
find_package(TBB REQUIRED)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
if(NOT TARGET CGAL::TBB_support)
|
if(NOT TARGET CGAL::TBB_support)
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB was not found. Mesh_3 is faster if TBB is linked.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Intel TBB was not found. Mesh_3 is faster if TBB is linked.")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else(CGAL_ACTIVATE_CONCURRENT_MESH_3 OR "$ENV{CGAL_ACTIVATE_CONCURRENT_MESH_3}")
|
else(CGAL_ACTIVATE_CONCURRENT_MESH_3 OR "$ENV{CGAL_ACTIVATE_CONCURRENT_MESH_3}")
|
||||||
option(LINK_WITH_TBB
|
option(LINK_WITH_TBB "Link with TBB anyway so we can use TBB timers for profiling" ON)
|
||||||
"Link with TBB anyway so we can use TBB timers for profiling" ON)
|
|
||||||
if(LINK_WITH_TBB)
|
if(LINK_WITH_TBB)
|
||||||
find_package(TBB)
|
find_package(TBB)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
|
|
@ -132,9 +123,8 @@ endif()
|
||||||
|
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
TBB PROPERTIES
|
TBB PROPERTIES
|
||||||
DESCRIPTION
|
DESCRIPTION "A library for parallel programming."
|
||||||
"A library for parallelism. Mesh_3, Bilateral smoothing and WLOP plugins are faster if TBB is linked."
|
PURPOSE "Plugins such as Mesh_3, Bilateral smoothing, and WLOP are faster if TBB is linked.")
|
||||||
PURPOSE "Requiered for running some algorithms in parallel.")
|
|
||||||
|
|
||||||
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
|
|
@ -212,8 +202,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
Qt5::Script CGAL::CGAL_Qt5)
|
Qt5::Script CGAL::CGAL_Qt5)
|
||||||
if(TARGET Qt5::WebSockets)
|
if(TARGET Qt5::WebSockets)
|
||||||
target_link_libraries(demo_framework PUBLIC Qt5::WebSockets)
|
target_link_libraries(demo_framework PUBLIC Qt5::WebSockets)
|
||||||
message(
|
message(STATUS "Qt5WebSockets was found. Using WebSockets is therefore possible.")
|
||||||
STATUS "Qt5WebSockets was found. Using WebSockets is therefore possible.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#compilation_of__demo_framework is defined in polyhedron_demo_macros.cmake
|
#compilation_of__demo_framework is defined in polyhedron_demo_macros.cmake
|
||||||
|
|
@ -383,10 +372,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
if(TARGET Qt5::ScriptTools)
|
if(TARGET Qt5::ScriptTools)
|
||||||
target_link_libraries(polyhedron_demo PUBLIC Qt5::ScriptTools)
|
target_link_libraries(polyhedron_demo PUBLIC Qt5::ScriptTools)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "POLYHEDRON_QTSCRIPT_DEBUGGER is set to TRUE but the Qt5 ScriptTools library was not found.")
|
||||||
STATUS
|
|
||||||
"POLYHEDRON_QTSCRIPT_DEBUGGER is set to TRUE but the Qt5 ScriptTools library was not found."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(Polyhedron_3 PRIVATE demo_framework)
|
target_link_libraries(Polyhedron_3 PRIVATE demo_framework)
|
||||||
|
|
@ -433,8 +419,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
if(TARGET Qt5::WebSockets AND TARGET Qt5::Network)
|
if(TARGET Qt5::WebSockets AND TARGET Qt5::Network)
|
||||||
add_executable(WS_server Server_ws.cpp)
|
add_executable(WS_server Server_ws.cpp)
|
||||||
target_link_libraries(WS_server PUBLIC Qt5::WebSockets Qt5::Widgets Qt5::Network)
|
target_link_libraries(WS_server PUBLIC Qt5::WebSockets Qt5::Widgets Qt5::Network)
|
||||||
message(
|
message(STATUS "Qt5WebSockets was found. Using WebSockets is therefore possible.")
|
||||||
STATUS "Qt5WebSockets was found. Using WebSockets is therefore possible.")
|
|
||||||
endif()
|
endif()
|
||||||
#
|
#
|
||||||
# Exporting
|
# Exporting
|
||||||
|
|
@ -481,10 +466,7 @@ else(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
set(POLYHEDRON_MISSING_DEPS "Qt5, ${POLYHEDRON_MISSING_DEPS}")
|
set(POLYHEDRON_MISSING_DEPS "Qt5, ${POLYHEDRON_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${POLYHEDRON_MISSING_DEPS} and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${POLYHEDRON_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
|
|
@ -495,7 +477,7 @@ feature_summary(
|
||||||
QUIET_ON_EMPTY
|
QUIET_ON_EMPTY
|
||||||
VAR NotFound_REQ_PACKAGES)
|
VAR NotFound_REQ_PACKAGES)
|
||||||
if(NOT ${NotFound_REQ_PACKAGES} STREQUAL "")
|
if(NOT ${NotFound_REQ_PACKAGES} STREQUAL "")
|
||||||
message(STATUS "${NotFound_REQ_PACKAGES}")
|
message("${NotFound_REQ_PACKAGES}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
feature_summary(
|
feature_summary(
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
include(CGAL_Boost_serialization_support)
|
include(CGAL_Boost_serialization_support)
|
||||||
include(CGAL_Boost_iostreams_support)
|
include(CGAL_Boost_iostreams_support)
|
||||||
if(NOT TARGET CGAL::Boost_serialization_support OR NOT TARGET CGAL::Boost_iostreams_support)
|
if(NOT TARGET CGAL::Boost_serialization_support OR NOT TARGET CGAL::Boost_iostreams_support)
|
||||||
message(
|
message(STATUS "NOTICE: Boost IO Streams and/or Serialization not found, reading deprecated Classification config files won't be possible.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Boost IO Streams and/or Serialization not found, reading deprecated Classification config files won't be possible."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenCV QUIET COMPONENTS core ml) # Need core + machine learning
|
find_package(OpenCV QUIET COMPONENTS core ml) # Need core + machine learning
|
||||||
|
|
@ -20,10 +17,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
)
|
)
|
||||||
include(CGAL_OpenCV_support)
|
include(CGAL_OpenCV_support)
|
||||||
if(NOT TARGET CGAL::OpenCV_support)
|
if(NOT TARGET CGAL::OpenCV_support)
|
||||||
message(
|
message(STATUS "NOTICE: OpenCV was not found. OpenCV random forest predicate for classification won't be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: OpenCV was not found. OpenCV random forest predicate for classification won't be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt5_wrap_ui(classificationUI_FILES Classification_widget.ui
|
qt5_wrap_ui(classificationUI_FILES Classification_widget.ui
|
||||||
|
|
@ -69,8 +63,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
add_dependencies(classification_plugin point_set_selection_plugin selection_plugin)
|
add_dependencies(classification_plugin point_set_selection_plugin selection_plugin)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Classification plugin will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Classification plugin will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ include(polyhedron_demo_macros)
|
||||||
find_package(LASLIB)
|
find_package(LASLIB)
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
LASLIB PROPERTIES
|
LASLIB PROPERTIES
|
||||||
DESCRIPTION "A library for some I/O."
|
DESCRIPTION "A library for LIDAR I/O."
|
||||||
PURPOSE "Requiered for reading or writing LAS files.")
|
PURPOSE "Required for reading or writing LAS files.")
|
||||||
|
|
||||||
include(CGAL_LASLIB_support)
|
include(CGAL_LASLIB_support)
|
||||||
|
|
||||||
|
|
@ -68,22 +68,13 @@ if(VTK_FOUND)
|
||||||
${VTK_LIBRARIES})
|
${VTK_LIBRARIES})
|
||||||
target_compile_definitions(vtk_plugin PRIVATE -DCGAL_USE_VTK)
|
target_compile_definitions(vtk_plugin PRIVATE -DCGAL_USE_VTK)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the vtk IO plugin needs VTK libraries and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the vtk IO plugin needs VTK libraries and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the vtk IO plugin needs VTK 6.0 or greater and will not be compiled (incorrect version found).")
|
||||||
STATUS
|
|
||||||
"NOTICE : the vtk IO plugin needs VTK 6.0 or greater and will not be compiled (incorrect version found)."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the vtk IO plugin needs VTK 6.0 or greater and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the vtk IO plugin needs VTK 6.0 or greater and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
polyhedron_demo_plugin(xyz_plugin XYZ_io_plugin KEYWORDS Viewer PointSetProcessing Classification)
|
polyhedron_demo_plugin(xyz_plugin XYZ_io_plugin KEYWORDS Viewer PointSetProcessing Classification)
|
||||||
target_link_libraries(xyz_plugin PUBLIC scene_points_with_normal_item)
|
target_link_libraries(xyz_plugin PUBLIC scene_points_with_normal_item)
|
||||||
|
|
@ -92,10 +83,7 @@ list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_rvalue_references has_cxx_rvalues)
|
||||||
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_variadic_templates has_cxx_variadic)
|
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_variadic_templates has_cxx_variadic)
|
||||||
|
|
||||||
if(has_cxx_rvalues LESS 0 OR has_cxx_variadic LESS 0)
|
if(has_cxx_rvalues LESS 0 OR has_cxx_variadic LESS 0)
|
||||||
message(
|
message(STATUS "NOTICE: LAS/PLY IO examples require a C++11 compiler and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : LAS/PLY IO examples require a C++11 compiler and will not be compiled."
|
|
||||||
)
|
|
||||||
else()
|
else()
|
||||||
set(needed_cxx_features cxx_rvalue_references cxx_variadic_templates)
|
set(needed_cxx_features cxx_rvalue_references cxx_variadic_templates)
|
||||||
|
|
||||||
|
|
@ -113,10 +101,7 @@ else()
|
||||||
PUBLIC "-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS")
|
PUBLIC "-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the LAS IO plugin needs LAS libraries and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the LAS IO plugin needs LAS libraries and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -138,8 +123,5 @@ if(3MF_LIBRARIES
|
||||||
target_link_libraries(io_3mf_plugin PRIVATE scene_surface_mesh_item scene_points_with_normal_item scene_polylines_item ${3MF_LIBRARIES})
|
target_link_libraries(io_3mf_plugin PRIVATE scene_surface_mesh_item scene_points_with_normal_item scene_polylines_item ${3MF_LIBRARIES})
|
||||||
target_compile_definitions(io_3mf_plugin PRIVATE -DCGAL_LINKED_WITH_3MF)
|
target_compile_definitions(io_3mf_plugin PRIVATE -DCGAL_LINKED_WITH_3MF)
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The 3mf_io_plugin requires the lib3MF library in a version < 2.0, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : The 3mf_io_plugin requires the lib3MF library in a version < 2.0, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -44,22 +44,13 @@ if(VTK_FOUND)
|
||||||
set(VTK_LIBRARIES VTK::IOImage VTK::ImagingGeneral)
|
set(VTK_LIBRARIES VTK::IOImage VTK::ImagingGeneral)
|
||||||
endif()
|
endif()
|
||||||
if(NOT VTK_LIBRARIES)
|
if(NOT VTK_LIBRARIES)
|
||||||
message(
|
message(STATUS "NOTICE: DICOM files (.dcm) require the VTK libraries, and will not be readable.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: DICOM files (.dcm) require the VTK libraries, and will not be readable.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: DICOM files (.dcm) require the VTK libraries, and will not be readable.")
|
||||||
STATUS
|
|
||||||
"NOTICE : the DICOM files (.dcm) need VTK libraries to be open and will not be able to."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Boost QUIET OPTIONAL_COMPONENTS filesystem system)
|
find_package(Boost QUIET OPTIONAL_COMPONENTS filesystem system)
|
||||||
|
|
@ -82,10 +73,7 @@ if(Boost_FILESYSTEM_FOUND)
|
||||||
target_link_libraries(io_image_plugin PUBLIC ${Boost_LIBRARIES})
|
target_link_libraries(io_image_plugin PUBLIC ${Boost_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the Io_image_plugin requires boost-filesystem, and will not be compiled")
|
||||||
STATUS
|
|
||||||
"NOTICE : the Io_image_plugin needs boost-filesystem to work and will not be compiled"
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
polyhedron_demo_plugin(
|
polyhedron_demo_plugin(
|
||||||
mesh_3_optimization_plugin
|
mesh_3_optimization_plugin
|
||||||
|
|
@ -101,17 +89,14 @@ target_link_libraries(
|
||||||
scene_implicit_function_item)
|
scene_implicit_function_item)
|
||||||
|
|
||||||
# Use Eigen
|
# Use Eigen
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
|
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(mesh_3_optimization_plugin PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(mesh_3_optimization_plugin PUBLIC CGAL::Eigen3_support)
|
||||||
else() #eigen
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The Mesh_3_optimization_plugin requires Eigen, which was not found."
|
||||||
STATUS
|
"A deprecated class will be used to replace it. Warnings are to be expected.")
|
||||||
"The Mesh_3_optimization_plugin requires Eigen, which was not found, and will use a deprecated class to replace it. Warnings are to be expected."
|
endif()
|
||||||
)
|
|
||||||
endif() #eigen
|
|
||||||
|
|
||||||
polyhedron_demo_plugin(c3t3_io_plugin C3t3_io_plugin KEYWORDS Viewer Mesh_3)
|
polyhedron_demo_plugin(c3t3_io_plugin C3t3_io_plugin KEYWORDS Viewer Mesh_3)
|
||||||
target_link_libraries(c3t3_io_plugin PUBLIC scene_c3t3_item)
|
target_link_libraries(c3t3_io_plugin PUBLIC scene_c3t3_item)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,5 @@ target_link_libraries(diff_between_meshes_plugin PUBLIC scene_surface_mesh_item)
|
||||||
polyhedron_demo_plugin(partition_plugin Partition_graph_plugin ${partitionUI_FILES})
|
polyhedron_demo_plugin(partition_plugin Partition_graph_plugin ${partitionUI_FILES})
|
||||||
target_link_libraries(partition_plugin PUBLIC scene_surface_mesh_item CGAL::METIS_support )
|
target_link_libraries(partition_plugin PUBLIC scene_surface_mesh_item CGAL::METIS_support )
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: the Partition plugin needs METIS libraries and will not be compiled.")
|
||||||
"NOTICE : the Partition plugin needs METIS libraries and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,12 @@
|
||||||
include(polyhedron_demo_macros)
|
include(polyhedron_demo_macros)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
|
||||||
|
|
||||||
|
if(TARGET CGAL::Eigen3_support)
|
||||||
polyhedron_demo_plugin(jet_fitting_plugin Jet_fitting_plugin)
|
polyhedron_demo_plugin(jet_fitting_plugin Jet_fitting_plugin)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
jet_fitting_plugin PUBLIC scene_surface_mesh_item scene_polylines_item
|
jet_fitting_plugin PUBLIC scene_surface_mesh_item scene_polylines_item
|
||||||
CGAL::Eigen3_support)
|
CGAL::Eigen3_support)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Jet fitting plugin will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Jet fitting plugin will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
polyhedron_demo_plugin(extrude_plugin Extrude_plugin KEYWORDS PMP)
|
polyhedron_demo_plugin(extrude_plugin Extrude_plugin KEYWORDS PMP)
|
||||||
|
|
@ -64,17 +60,10 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
PROPERTIES RESOURCE_LOCK Selection_test_resources)
|
PROPERTIES RESOURCE_LOCK Selection_test_resources)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The hole filling and fairing plugins require Eigen 3.2 (or higher) and will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The hole filling and fairing plugins require Eigen 3.2 (or higher) and will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
else(EIGEN3_FOUND)
|
message(STATUS "NOTICE: The hole filling and fairing plugins require Eigen 3.2 (or higher) and will not be available.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: The hole filling and fairing plugins require Eigen 3.2 (or higher) and will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt5_wrap_ui(soupUI_FILES Repair_soup.ui)
|
qt5_wrap_ui(soupUI_FILES Repair_soup.ui)
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,8 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
SCIP PROPERTIES
|
SCIP PROPERTIES
|
||||||
DESCRIPTION "A solver."
|
DESCRIPTION "A solver for mixed integer programming."
|
||||||
PURPOSE
|
PURPOSE "Can be used as a solver in the surface_reconstruction_plugin plugin.")
|
||||||
"Can be used as a solver in the surface_reconstruction_plugin plugin.")
|
|
||||||
|
|
||||||
include(CGAL_SCIP_support)
|
include(CGAL_SCIP_support)
|
||||||
if(NOT TARGET CGAL::SCIP_support)
|
if(NOT TARGET CGAL::SCIP_support)
|
||||||
|
|
@ -16,17 +15,13 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
set_package_properties(
|
set_package_properties(
|
||||||
GLPK PROPERTIES
|
GLPK PROPERTIES
|
||||||
DESCRIPTION "An alternative for SCIP."
|
DESCRIPTION "An alternative for SCIP."
|
||||||
PURPOSE
|
PURPOSE "Can be used as a solver in the surface_reconstruction_plugin plugin.")
|
||||||
"Can be used as a solver in the surface_reconstruction_plugin plugin.")
|
|
||||||
|
|
||||||
include(CGAL_GLPK_support)
|
include(CGAL_GLPK_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TARGET CGAL::SCIP_support AND NOT TARGET CGAL::GLPK_support)
|
if(NOT TARGET CGAL::SCIP_support AND NOT TARGET CGAL::GLPK_support)
|
||||||
message(
|
message(STATUS "NOTICE: SCIP and GLPK were not found. Polygonal surface reconstruction will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: SCIP and GLPK were not found. Polygonal surface reconstruction will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt5_wrap_ui(surface_reconstructionUI_FILES Surface_reconstruction_plugin.ui)
|
qt5_wrap_ui(surface_reconstructionUI_FILES Surface_reconstruction_plugin.ui)
|
||||||
|
|
@ -118,33 +113,14 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
PUBLIC CGAL::pointmatcher_support)
|
PUBLIC CGAL::pointmatcher_support)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: OpenGR and libpointmatcher were not found. Registration plugin will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: OpenGR and libpointmatcher were not found. Registration plugin will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
else(EIGEN3_FOUND)
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Surface reconstruction plugin will not be available.")
|
||||||
message(
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Normal estimation plugins will not be available.")
|
||||||
STATUS
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Smoothing plugin will not be available.")
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Surface reconstruction plugin will not be available."
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Average spacing plugin will not be available.")
|
||||||
)
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. Feature detection plugin will not be available.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Normal estimation plugins will not be available."
|
|
||||||
)
|
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Smoothing plugin will not be available."
|
|
||||||
)
|
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Average spacing plugin will not be available."
|
|
||||||
)
|
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. Feature detection plugin will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt5_wrap_ui(point_set_bilateral_smoothingUI_FILES
|
qt5_wrap_ui(point_set_bilateral_smoothingUI_FILES
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,7 @@ if(NOT CGAL_DISABLE_GMP)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Eigen 3.1 (or greater) was not found. The Parameterization plugin will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Eigen 3.1 (or greater) was not found. The Parameterization plugin will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt5_wrap_ui(segmentationUI_FILES Mesh_segmentation_widget.ui)
|
qt5_wrap_ui(segmentationUI_FILES Mesh_segmentation_widget.ui)
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,5 @@ if(EIGEN3_FOUND AND "${EIGEN3_VERSION}" VERSION_GREATER "3.1.90")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: The polyhedron edit plugin requires Eigen 3.2 (or higher) and will not be available.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The polyhedron edit plugin require Eigen 3.2 (or higher) and will not be available."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,6 @@ else(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
set(MESH_3_MISSING_DEPS "Qt5, ${MESH_3_MISSING_DEPS}")
|
set(MESH_3_MISSING_DEPS "Qt5, ${MESH_3_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${MESH_3_MISSING_DEPS} and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${MESH_3_MISSING_DEPS}and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
||||||
STATUS "NOTICE: This demo requires CGAL and Qt5, and will not be compiled.")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,7 @@ find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires the Eigen library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This project requires the Eigen library, and will not be compiled."
|
|
||||||
)
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -73,9 +70,6 @@ else(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
set(PCA_MISSING_DEPS "Qt5, ${PCA_MISSING_DEPS}")
|
set(PCA_MISSING_DEPS "Qt5, ${PCA_MISSING_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(
|
message("NOTICE: This demo requires ${PCA_MISSING_DEPS} and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This demo requires ${PCA_MISSING_DEPS} and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
endif(CGAL_Qt5_FOUND AND Qt5_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ find_package(CGAL REQUIRED)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(STATUS "NOTICE: This project requires Eigen 3.1 (or greater) and will not be compiled.")
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ find_package(CGAL REQUIRED)
|
||||||
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(STATUS "NOTICE: This project requires Eigen 3.1 (or greater) and will not be compiled.")
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,6 @@ include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("custom_property_map.cpp")
|
create_single_source_cgal_program("custom_property_map.cpp")
|
||||||
target_link_libraries(custom_property_map PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(custom_property_map PUBLIC CGAL::Eigen3_support)
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: The example 'custom_property_map' requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -31,14 +31,8 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(Ridges_Umbilics_LCC PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
target_link_libraries(Ridges_Umbilics_LCC PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This project requires Boost Program Options and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This programs require Boost Program Options and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("ridge_test.cpp")
|
create_single_source_cgal_program("ridge_test.cpp")
|
||||||
target_link_libraries(ridge_test PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(ridge_test PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"NOTICE: This program requires Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -62,4 +62,6 @@ endif()
|
||||||
if(OpenMesh_FOUND)
|
if(OpenMesh_FOUND)
|
||||||
create_single_source_cgal_program("test_hash_OpenMesh.cpp")
|
create_single_source_cgal_program("test_hash_OpenMesh.cpp")
|
||||||
target_link_libraries(test_hash_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
target_link_libraries(test_hash_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Tests that use OpenMesh will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@ if(ACTIVATE_CONCURRENCY)
|
||||||
find_package(TBB)
|
find_package(TBB)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
if(NOT TARGET CGAL::TBB_support)
|
if(NOT TARGET CGAL::TBB_support)
|
||||||
message(
|
message(STATUS "NOTICE: Intel TBB not found. Examples are faster if TBB is linked.")
|
||||||
STATUS
|
|
||||||
"NOTICE: Intel TBB NOT found! The example is faster if TBB is linked.")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -35,8 +33,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(scale_space_advancing_front PUBLIC CGAL::TBB_support)
|
target_link_libraries(scale_space_advancing_front PUBLIC CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: Examples require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: The example needs Eigen 3.1 (or greater) and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -59,4 +59,6 @@ if(EIGEN3_FOUND)
|
||||||
target_link_libraries(test_validity_sampled_data CGAL::CGAL CGAL::Data CGAL::Eigen3_support)
|
target_link_libraries(test_validity_sampled_data CGAL::CGAL CGAL::Data CGAL::Eigen3_support)
|
||||||
endif()
|
endif()
|
||||||
cgal_add_test(test_validity_sampled_data)
|
cgal_add_test(test_validity_sampled_data)
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Some tests require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,5 @@ if(TARGET CGAL::OSQP_support)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
message(NOTICE "OSQP was not found. OSQP benchmarks won't be available.")
|
message("NOTICE: OSQP was not found. OSQP benchmarks won't be available.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,10 @@ if(TARGET CGAL::OSQP_support)
|
||||||
create_single_source_cgal_program("regularize_real_data_2.cpp")
|
create_single_source_cgal_program("regularize_real_data_2.cpp")
|
||||||
target_link_libraries(regularize_real_data_2 PUBLIC CGAL::Eigen3_support CGAL::OSQP_support)
|
target_link_libraries(regularize_real_data_2 PUBLIC CGAL::Eigen3_support CGAL::OSQP_support)
|
||||||
else()
|
else()
|
||||||
message(NOTICE "Eigen was not found. Eigen examples won't be available.")
|
message(STATUS "NOTICE: Eigen was not found. Eigen examples won't be available.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(NOTICE "OSQP was not found. OSQP examples won't be available.")
|
message(STATUS "NOTICE: OSQP was not found. OSQP examples won't be available.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
create_single_source_cgal_program("regularize_framework.cpp")
|
create_single_source_cgal_program("regularize_framework.cpp")
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ if(TARGET CGAL::OSQP_support)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
message(NOTICE "OSQP was not found. OSQP tests won't be available.")
|
message(STATUS "NOTICE: OSQP was not found. OSQP tests won't be available.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(targets
|
set(targets
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,5 @@ if(ESBTL_FOUND)
|
||||||
include_directories(${ESBTL_INCLUDE_DIR})
|
include_directories(${ESBTL_INCLUDE_DIR})
|
||||||
create_single_source_cgal_program("skin_surface_pdb_reader.cpp")
|
create_single_source_cgal_program("skin_surface_pdb_reader.cpp")
|
||||||
else(ESBTL_FOUND)
|
else(ESBTL_FOUND)
|
||||||
message(
|
message(STATUS "NOTICE: skin_surface_pdb_reader.cpp requires ESBTL library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE: skin_surface_pdb_reader.cpp requires ESBTL library, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif(ESBTL_FOUND)
|
endif(ESBTL_FOUND)
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
target_link_libraries(sparse_solvers PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(sparse_solvers PUBLIC CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("diagonalize_matrix.cpp")
|
create_single_source_cgal_program("diagonalize_matrix.cpp")
|
||||||
target_link_libraries(diagonalize_matrix PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(diagonalize_matrix PUBLIC CGAL::Eigen3_support)
|
||||||
|
else()
|
||||||
|
message(STATUS "NOTICE: Eigen3 was not found. Some examples won't be available.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OSQP QUIET)
|
find_package(OSQP QUIET)
|
||||||
|
|
@ -23,8 +25,7 @@ include(CGAL_OSQP_support)
|
||||||
if(TARGET CGAL::OSQP_support)
|
if(TARGET CGAL::OSQP_support)
|
||||||
create_single_source_cgal_program("osqp_quadratic_program.cpp")
|
create_single_source_cgal_program("osqp_quadratic_program.cpp")
|
||||||
target_link_libraries(osqp_quadratic_program PUBLIC CGAL::OSQP_support)
|
target_link_libraries(osqp_quadratic_program PUBLIC CGAL::OSQP_support)
|
||||||
message("OSQP found and used")
|
message(STATUS "OSQP found and used")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: OSQP was not found. OSQP examples won't be available.")
|
message(STATUS "NOTICE: OSQP was not found. OSQP examples won't be available.")
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -34,23 +35,16 @@ include(CGAL_SCIP_support)
|
||||||
if(TARGET CGAL::SCIP_support)
|
if(TARGET CGAL::SCIP_support)
|
||||||
create_single_source_cgal_program("mixed_integer_program.cpp")
|
create_single_source_cgal_program("mixed_integer_program.cpp")
|
||||||
target_link_libraries(mixed_integer_program PUBLIC CGAL::SCIP_support)
|
target_link_libraries(mixed_integer_program PUBLIC CGAL::SCIP_support)
|
||||||
message("SCIP found and used")
|
message(STATUS "SCIP found and used")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
find_package(GLPK QUIET)
|
find_package(GLPK QUIET)
|
||||||
include(CGAL_GLPK_support)
|
include(CGAL_GLPK_support)
|
||||||
if(TARGET CGAL::GLPK_support)
|
if(TARGET CGAL::GLPK_support)
|
||||||
create_single_source_cgal_program("mixed_integer_program.cpp")
|
create_single_source_cgal_program("mixed_integer_program.cpp")
|
||||||
target_link_libraries(mixed_integer_program PUBLIC CGAL::GLPK_support)
|
target_link_libraries(mixed_integer_program PUBLIC CGAL::GLPK_support)
|
||||||
message("GLPK found and used")
|
message(STATUS "GLPK found and used")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
message(STATUS "NOTICE: This project requires either SCIP or GLPK, and will not be compiled. "
|
||||||
message(
|
"Please provide either 'SCIP_DIR' or 'GLPK_INCLUDE_DIR' and 'GLPK_LIBRARIES'")
|
||||||
STATUS
|
|
||||||
"NOTICE : This project requires either SCIP or GLPK, and will not be compiled. "
|
|
||||||
"Please provide either 'SCIP_DIR' or 'GLPK_INCLUDE_DIR' and 'GLPK_LIBRARIES'"
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -44,13 +44,8 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("general_neighbor_searching.cpp")
|
create_single_source_cgal_program("general_neighbor_searching.cpp")
|
||||||
target_link_libraries(general_neighbor_searching PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(general_neighbor_searching PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
|
message(STATUS "NOTICE: The examples 'fuzzy_range_query' and 'general_neighbor_searching'")
|
||||||
message(STATUS "fuzzy_range_query.cpp and general_neighbor_searching.cpp")
|
message(STATUS "will not be compiled as they use CGAL::Epick_d, which requires the Eigen library.")
|
||||||
message(
|
|
||||||
STATUS
|
|
||||||
"will not be compiled as they use CGAL::Epick_d which requires the Eigen library."
|
|
||||||
)
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(TBB QUIET)
|
find_package(TBB QUIET)
|
||||||
|
|
@ -59,5 +54,5 @@ if(TARGET CGAL::TBB_support)
|
||||||
create_single_source_cgal_program("parallel_kdtree.cpp")
|
create_single_source_cgal_program("parallel_kdtree.cpp")
|
||||||
target_link_libraries(parallel_kdtree PUBLIC CGAL::TBB_support)
|
target_link_libraries(parallel_kdtree PUBLIC CGAL::TBB_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "parallel_kdtree.cpp requires TBB and will not be compiled")
|
message(STATUS "NOTICE: The example 'parallel_kdtree' requires TBB, and will not be compiled")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ if(CGAL_Qt5_FOUND)
|
||||||
target_link_libraries(draw_straight_skeleton_2 PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(draw_straight_skeleton_2 PUBLIC CGAL::CGAL_Basic_viewer)
|
||||||
target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PUBLIC CGAL::CGAL_Basic_viewer)
|
target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PUBLIC CGAL::CGAL_Basic_viewer)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: The example draw_straight_skeleton_2 requires Qt and will not be compiled.")
|
message(STATUS "NOTICE: The example 'draw_straight_skeleton_2' requires Qt and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,7 @@ foreach(cppfile ${cppfiles})
|
||||||
create_single_source_cgal_program("${cppfile}")
|
create_single_source_cgal_program("${cppfile}")
|
||||||
target_link_libraries(test_3mf_to_sm PRIVATE ${3MF_LIBRARIES})
|
target_link_libraries(test_3mf_to_sm PRIVATE ${3MF_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
message(
|
message(STATUS "NOTICE: Some tests require the lib3MF library, and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"NOTICE : This program requires the lib3MF library, and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
create_single_source_cgal_program("${cppfile}")
|
create_single_source_cgal_program("${cppfile}")
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,5 @@ if(3MF_LIBRARIES AND 3MF_INCLUDE_DIR AND EXISTS "${3MF_INCLUDE_DIR}/Model/COM/N
|
||||||
target_link_libraries(test_deprecated_io_sm PRIVATE ${3MF_LIBRARIES})
|
target_link_libraries(test_deprecated_io_sm PRIVATE ${3MF_LIBRARIES})
|
||||||
target_compile_definitions(test_deprecated_io_sm PRIVATE -DCGAL_LINKED_WITH_3MF)
|
target_compile_definitions(test_deprecated_io_sm PRIVATE -DCGAL_LINKED_WITH_3MF)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE : read_3mf requires the lib3MF library, and will not be tested.")
|
message(STATUS "NOTICE: read_3mf requires the lib3MF library, and will not be tested.")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,7 @@ endif()
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,7 @@ endif()
|
||||||
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
find_package(Eigen3 3.1.0 REQUIRED) #(3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(NOT TARGET CGAL::Eigen3_support)
|
if(NOT TARGET CGAL::Eigen3_support)
|
||||||
message(
|
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
STATUS "This project requires the Eigen library, and will not be compiled.")
|
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,5 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
create_single_source_cgal_program("benchmark_for_concept_models.cpp")
|
create_single_source_cgal_program("benchmark_for_concept_models.cpp")
|
||||||
target_link_libraries(benchmark_for_concept_models PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(benchmark_for_concept_models PUBLIC CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(
|
message("NOTICE: This program requires requires Eigen 3.1 (or greater) or later and will not be compiled.")
|
||||||
STATUS
|
|
||||||
"This program requires the Eigen library, version 3.1 or later and will not be compiled."
|
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue