mirror of https://github.com/CGAL/cgal
fixed cmakelists
This commit is contained in:
parent
8e1fad7818
commit
e93c2e4bbf
|
|
@ -6,9 +6,7 @@ project(Barycentric_coordinates_2_Benchmarks)
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
find_package(CGAL REQUIRED)
|
||||||
if(CGAL_FOUND)
|
|
||||||
|
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
include(CGAL_CreateSingleSourceCGALProgram)
|
include(CGAL_CreateSingleSourceCGALProgram)
|
||||||
|
|
||||||
|
|
@ -19,7 +17,7 @@ if(CGAL_FOUND)
|
||||||
create_single_source_cgal_program("benchmark_polygon_100_vertices.cpp")
|
create_single_source_cgal_program("benchmark_polygon_100_vertices.cpp")
|
||||||
create_single_source_cgal_program("benchmark_mv_34_vertices.cpp")
|
create_single_source_cgal_program("benchmark_mv_34_vertices.cpp")
|
||||||
|
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 QUIET)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
|
|
@ -29,8 +27,5 @@ if(CGAL_FOUND)
|
||||||
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(WARNING "Several coordinates require the Eigen library, and will not be compiled.")
|
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(WARNING "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,7 @@ project(Barycentric_coordinates_2_Examples)
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
find_package(CGAL REQUIRED)
|
||||||
if(CGAL_FOUND)
|
|
||||||
|
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
include(CGAL_CreateSingleSourceCGALProgram)
|
include(CGAL_CreateSingleSourceCGALProgram)
|
||||||
|
|
||||||
|
|
@ -22,7 +20,7 @@ if(CGAL_FOUND)
|
||||||
# this code is deprecated:
|
# this code is deprecated:
|
||||||
create_single_source_cgal_program("deprecated_coordinates.cpp")
|
create_single_source_cgal_program("deprecated_coordinates.cpp")
|
||||||
|
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 QUIET)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
|
|
@ -34,8 +32,5 @@ if(CGAL_FOUND)
|
||||||
target_link_libraries(shape_deformation PUBLIC CGAL::Eigen3_support)
|
target_link_libraries(shape_deformation PUBLIC CGAL::Eigen3_support)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(WARNING "Several coordinates require the Eigen library, and will not be compiled.")
|
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(WARNING "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,7 @@ project(Barycentric_coordinates_2_Tests)
|
||||||
cmake_minimum_required(VERSION 3.1...3.15)
|
cmake_minimum_required(VERSION 3.1...3.15)
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
|
||||||
find_package(CGAL QUIET COMPONENTS Core)
|
find_package(CGAL REQUIRED)
|
||||||
if(CGAL_FOUND)
|
|
||||||
|
|
||||||
include(${CGAL_USE_FILE})
|
include(${CGAL_USE_FILE})
|
||||||
include(CGAL_CreateSingleSourceCGALProgram)
|
include(CGAL_CreateSingleSourceCGALProgram)
|
||||||
|
|
||||||
|
|
@ -47,7 +45,7 @@ if(CGAL_FOUND)
|
||||||
create_single_source_cgal_program("test_mv_deprecated_api.cpp")
|
create_single_source_cgal_program("test_mv_deprecated_api.cpp")
|
||||||
create_single_source_cgal_program("test_dh_deprecated_api.cpp")
|
create_single_source_cgal_program("test_dh_deprecated_api.cpp")
|
||||||
|
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 QUIET)
|
||||||
include(CGAL_Eigen3_support)
|
include(CGAL_Eigen3_support)
|
||||||
if(TARGET CGAL::Eigen3_support)
|
if(TARGET CGAL::Eigen3_support)
|
||||||
|
|
||||||
|
|
@ -63,8 +61,5 @@ if(CGAL_FOUND)
|
||||||
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(WARNING "Several coordinates require the Eigen library, and will not be compiled.")
|
message(NOTICE "Several coordinates require the Eigen library, and will not be compiled.")
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(WARNING "This program requires the CGAL library, and will not be compiled.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue