mirror of https://github.com/CGAL/cgal
Merge remote-tracking branch 'cgal/5.6.x-branch'
This commit is contained in:
commit
eca59c4a14
|
|
@ -25,13 +25,9 @@ endif()
|
||||||
# Activate concurrency?
|
# Activate concurrency?
|
||||||
option(CGAL_ACTIVATE_CONCURRENT_PSP3 "Enable concurrency" OFF)
|
option(CGAL_ACTIVATE_CONCURRENT_PSP3 "Enable concurrency" OFF)
|
||||||
|
|
||||||
set(CGAL_libs CGAL::CGAL)
|
|
||||||
if(CGAL_ACTIVATE_CONCURRENT_PSP3 OR "$ENV{CGAL_ACTIVATE_CONCURRENT_PSP3}")
|
if(CGAL_ACTIVATE_CONCURRENT_PSP3 OR "$ENV{CGAL_ACTIVATE_CONCURRENT_PSP3}")
|
||||||
find_package(TBB REQUIRED)
|
find_package(TBB REQUIRED)
|
||||||
include(CGAL_TBB_support)
|
include(CGAL_TBB_support)
|
||||||
if(TARGET CGAL::TBB_support)
|
|
||||||
set(CGAL_TBB_target ${CGAL_libs} CGAL::TBB_support)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Executables that do *not* require EIGEN
|
# Executables that do *not* require EIGEN
|
||||||
|
|
@ -61,8 +57,8 @@ if(NOT MSVC_VERSION OR MSVC_VERSION GREATER_EQUAL 1919 OR MSVC_VERSION LESS 1910
|
||||||
if (TARGET CGAL::LASLIB_support)
|
if (TARGET CGAL::LASLIB_support)
|
||||||
create_single_source_cgal_program("read_las_example.cpp")
|
create_single_source_cgal_program("read_las_example.cpp")
|
||||||
create_single_source_cgal_program("write_las_example.cpp")
|
create_single_source_cgal_program("write_las_example.cpp")
|
||||||
target_link_libraries(read_las_example PRIVATE ${CGAL_libs} CGAL::LASLIB_support)
|
target_link_libraries(read_las_example PRIVATE CGAL::LASLIB_support)
|
||||||
target_link_libraries(write_las_example PRIVATE ${CGAL_libs} CGAL::LASLIB_support)
|
target_link_libraries(write_las_example PRIVATE 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()
|
||||||
|
|
@ -74,27 +70,43 @@ endif()
|
||||||
find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
|
find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
set(CGAL_libs ${CGAL_libs} CGAL::Eigen3_support)
|
|
||||||
|
|
||||||
# Executables that require Eigen
|
# Executables that require Eigen
|
||||||
foreach(
|
foreach(
|
||||||
target
|
target
|
||||||
jet_smoothing_example
|
callback_example
|
||||||
normal_estimation
|
|
||||||
clustering_example
|
clustering_example
|
||||||
edges_example
|
edges_example
|
||||||
callback_example
|
|
||||||
scale_estimation_example
|
|
||||||
scale_estimation_2d_example
|
|
||||||
hierarchy_simplification_example
|
hierarchy_simplification_example
|
||||||
normals_example)
|
jet_smoothing_example
|
||||||
|
normal_estimation
|
||||||
|
normals_example
|
||||||
|
scale_estimation_example
|
||||||
|
scale_estimation_2d_example)
|
||||||
create_single_source_cgal_program("${target}.cpp")
|
create_single_source_cgal_program("${target}.cpp")
|
||||||
target_link_libraries(${target} PRIVATE ${CGAL_libs})
|
target_link_libraries(${target} PRIVATE CGAL::Eigen3_support)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
if (TARGET CGAL::TBB_support)
|
||||||
|
foreach(
|
||||||
|
target
|
||||||
|
callback_example
|
||||||
|
clustering_example
|
||||||
|
jet_smoothing_example
|
||||||
|
normal_estimation
|
||||||
|
normals_example
|
||||||
|
scale_estimation_example)
|
||||||
|
target_link_libraries(${target} PRIVATE CGAL::TBB_support)
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (TARGET CGAL::Eigen3_support AND TARGET CGAL::LASLIB_support)
|
if (TARGET CGAL::Eigen3_support AND TARGET CGAL::LASLIB_support)
|
||||||
create_single_source_cgal_program( "orient_scanlines_example.cpp" )
|
create_single_source_cgal_program( "orient_scanlines_example.cpp" )
|
||||||
target_link_libraries(orient_scanlines_example PRIVATE ${CGAL_libs}
|
target_link_libraries(orient_scanlines_example PRIVATE
|
||||||
CGAL::Eigen3_support CGAL::LASLIB_support)
|
CGAL::Eigen3_support CGAL::LASLIB_support)
|
||||||
|
if (TARGET CGAL::TBB_support)
|
||||||
|
target_link_libraries(orient_scanlines_example PRIVATE CGAL::TBB_support)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Executables that require libpointmatcher
|
# Executables that require libpointmatcher
|
||||||
|
|
@ -102,7 +114,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
include(CGAL_pointmatcher_support)
|
include(CGAL_pointmatcher_support)
|
||||||
if(TARGET CGAL::pointmatcher_support)
|
if(TARGET CGAL::pointmatcher_support)
|
||||||
create_single_source_cgal_program("registration_with_pointmatcher.cpp")
|
create_single_source_cgal_program("registration_with_pointmatcher.cpp")
|
||||||
target_link_libraries(registration_with_pointmatcher PRIVATE ${CGAL_libs}
|
target_link_libraries(registration_with_pointmatcher PRIVATE CGAL::Eigen3_support
|
||||||
CGAL::pointmatcher_support)
|
CGAL::pointmatcher_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: registration with pointmatcher requires libpointmatcher and will not be compiled.")
|
message(STATUS "NOTICE: registration with pointmatcher requires libpointmatcher and will not be compiled.")
|
||||||
|
|
@ -120,7 +132,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
if(TARGET CGAL::OpenGR_support)
|
if(TARGET CGAL::OpenGR_support)
|
||||||
create_single_source_cgal_program("registration_with_OpenGR.cpp")
|
create_single_source_cgal_program("registration_with_OpenGR.cpp")
|
||||||
target_link_libraries(registration_with_OpenGR PRIVATE ${CGAL_libs}
|
target_link_libraries(registration_with_OpenGR PRIVATE CGAL::Eigen3_support
|
||||||
CGAL::OpenGR_support)
|
CGAL::OpenGR_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: registration_with_OpenGR requires OpenGR, and will not be compiled.")
|
message(STATUS "NOTICE: registration_with_OpenGR requires OpenGR, and will not be compiled.")
|
||||||
|
|
@ -131,7 +143,7 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
TARGET CGAL::OpenGR_support)
|
TARGET CGAL::OpenGR_support)
|
||||||
create_single_source_cgal_program("registration_with_opengr_pointmatcher_pipeline.cpp")
|
create_single_source_cgal_program("registration_with_opengr_pointmatcher_pipeline.cpp")
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
registration_with_opengr_pointmatcher_pipeline PRIVATE ${CGAL_libs}
|
registration_with_opengr_pointmatcher_pipeline PRIVATE CGAL::Eigen3_support
|
||||||
CGAL::pointmatcher_support CGAL::OpenGR_support)
|
CGAL::pointmatcher_support CGAL::OpenGR_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: registration with OpenGR and pointmatcher requires both libpointmatcher and OpenGR, and will not be compiled.")
|
message(STATUS "NOTICE: registration with OpenGR and pointmatcher requires both libpointmatcher and OpenGR, and will not be compiled.")
|
||||||
|
|
@ -140,3 +152,15 @@ if(TARGET CGAL::Eigen3_support)
|
||||||
else()
|
else()
|
||||||
message(STATUS "NOTICE: Some of the executables in this directory require Eigen 3.1 (or greater), and will not be compiled.")
|
message(STATUS "NOTICE: Some of the executables in this directory require Eigen 3.1 (or greater), and will not be compiled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TARGET CGAL::TBB_support)
|
||||||
|
foreach(
|
||||||
|
target
|
||||||
|
average_spacing_example
|
||||||
|
bilateral_smooth_point_set_example
|
||||||
|
edge_aware_upsample_point_set_example
|
||||||
|
remove_outliers_example
|
||||||
|
wlop_simplify_and_regularize_point_set_example)
|
||||||
|
target_link_libraries(${target} PRIVATE CGAL::TBB_support)
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue