# Created by the script cgal_create_CMakeLists
# This is the CMake script for compiling a set of CGAL applications.

cmake_minimum_required(VERSION 3.12...3.31)

project(Polygonal_surface_reconstruction_Tests)

# CGAL and its components
find_package(CGAL REQUIRED)

find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
include(CGAL_Eigen3_support)
if(NOT TARGET CGAL::Eigen3_support)
  message("NOTICE: This project requires Eigen 3.1 (or greater), and will not be compiled.")
  return()
endif()

find_package(SCIP QUIET)
include(CGAL_SCIP_support)
if(NOT TARGET CGAL::SCIP_support)
  find_package(GLPK QUIET)
  include(CGAL_GLPK_support)
  if(NOT TARGET CGAL::GLPK_support)
    message("NOTICE: This project requires either SCIP or GLPK, and will not be compiled.")
    return()
  endif()
endif()

create_single_source_cgal_program("polygonal_surface_reconstruction_test.cpp")
target_link_libraries(polygonal_surface_reconstruction_test PRIVATE CGAL::Eigen3_support)
if(TARGET CGAL::SCIP_support)
  target_link_libraries(polygonal_surface_reconstruction_test PRIVATE CGAL::SCIP_support)
else()
  target_link_libraries(polygonal_surface_reconstruction_test PRIVATE CGAL::GLPK_support)
endif()
