Skip to content

Commit

Permalink
Add an advanced example to draw cropped duals of Segment Delaunay Graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelRL committed Jan 11, 2024
1 parent f3e547f commit 958eabe
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
cmake_minimum_required(VERSION 3.1...3.23)
project(Segment_Delaunay_graph_2_Examples)

find_package(CGAL REQUIRED)
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Core)

# create a target per cppfile
file(
GLOB cppfiles
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})
create_single_source_cgal_program("${cppfile}")
endforeach()
create_single_source_cgal_program("sdg-count-sites.cpp")
create_single_source_cgal_program("sdg-fast-sp.cpp")
create_single_source_cgal_program("sdg-fast-sp-polygon.cpp")
create_single_source_cgal_program("sdg-filtered-traits.cpp")
create_single_source_cgal_program("sdg-info-set.cpp")
create_single_source_cgal_program("sdg-red-blue-info.cpp")
create_single_source_cgal_program("sdg-voronoi-edges.cpp")

find_package(LEDA QUIET)
if(CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("sdg-advanced-draw.cpp")
else()
message("NOTICE: The program sdg-advanced-draw requires CGAL_Core or LEDA, and will not be compiled.")
endif()
Loading

0 comments on commit 958eabe

Please sign in to comment.