Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# Ignore subsequent calls (https://github.com/LibrePCB/LibrePCB/issues/1812)
if(TARGET delaunay_triangulation)
return()
endif()
# Find bundled submodule
set(DT_SUBMODULE_BASEPATH "${PROJECT_SOURCE_DIR}/libs/delaunay-triangulation")
if(EXISTS "${DT_SUBMODULE_BASEPATH}")
message(STATUS "Using vendored DelaunayTriangulation")
# Add library
add_library(delaunay_triangulation INTERFACE)
target_include_directories(
delaunay_triangulation INTERFACE "${DT_SUBMODULE_BASEPATH}"
)
# Alias lib to namespaced variant
add_library(
DelaunayTriangulation::DelaunayTriangulation ALIAS delaunay_triangulation
)
# Stop here, we're done
set(DelaunayTriangulation_FOUND TRUE)
return()
endif()
message(
FATAL_ERROR
"Did not find DelaunayTriangulation library submodule, did you clone recursively?"
)
bae9c0e4eThis file is pinned to the selected release. Download the original to open it in your design tool.