cgal/Shape_detection/benchmark/Shape_detection/CMakeLists.txt

20 lines
787 B
CMake

# Created by the script cgal_create_cmake_script.
# This is the CMake script for compiling a CGAL application.
cmake_minimum_required(VERSION 3.12...3.29)
project(Shape_detection_Benchmarks)
find_package(CGAL REQUIRED COMPONENTS Core)
find_package(Eigen3 QUIET)
include(CGAL_Eigen3_support)
if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program("benchmark_region_growing_on_point_set_2.cpp")
target_link_libraries(benchmark_region_growing_on_point_set_2 PUBLIC CGAL::Eigen3_support)
create_single_source_cgal_program("benchmark_region_growing_on_point_set_3.cpp")
target_link_libraries(benchmark_region_growing_on_point_set_3 PUBLIC CGAL::Eigen3_support)
else()
message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
endif()