cmake_minimum_required(VERSION 3.12...3.31)
project(Surface_mesh_shortest_path_Tests)

find_package(CGAL REQUIRED)

include_directories(BEFORE "include")

create_single_source_cgal_program("Surface_mesh_shortest_path_test_1.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_test_2.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_test_3.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_test_4.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_test_5.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_test_6.cpp")
create_single_source_cgal_program("Surface_mesh_shortest_path_traits_test.cpp")

find_package(LEDA QUIET)
if(LEDA_FOUND)
  message(STATUS "Found LEDA")
endif()

# Link with Boost.ProgramOptions (optional)
find_package(Boost QUIET COMPONENTS program_options)
if(Boost_PROGRAM_OPTIONS_FOUND)
  message(STATUS "Found Boost program_options")
  create_single_source_cgal_program("TestMesh.cpp")
  if(TARGET Boost::program_options)
    target_link_libraries(TestMesh PRIVATE Boost::program_options)
  else()
    target_link_libraries(TestMesh PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
  endif()
else()
  message(STATUS "NOTICE: The example TestMesh.cpp requires boost program_option and will not be compiled.")
endif()
