diff --git a/CMakeLists.txt b/CMakeLists.txt index 5155e2ce3780c55db19e9f16524bfd67b0f2e4a2..014da546bf333df43c521ea27fa022741152f420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,11 +13,13 @@ project( # scikit-build-core's built-in backport) find_package(Python REQUIRED COMPONENTS Interpreter Development.Module) find_package(pybind11 CONFIG REQUIRED) +find_package(CGAL REQUIRED) # Add a library using FindPython's tooling (pybind11 also provides a helper like # this) python_add_library(_core MODULE src/main.cpp WITH_SOABI) target_link_libraries(_core PRIVATE pybind11::headers) +target_link_libraries(_core PRIVATE CGAL::CGAL) # This is passing in the version as a define just as an example target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION}) diff --git a/pyproject.toml b/pyproject.toml index e5d7fd4e666d0355bd197231c7132a0f9016ecec..d32dfa001876704c70defcf51cf77f01a4d93e29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,8 @@ test = ["pytest"] [tool.scikit-build] +cmake.verbose = true +logging.level = "INFO" wheel.expand-macos-universal-tags = true diff --git a/src/main.cpp b/src/main.cpp index fac6b555d8aba64f86ba516cdb37abbd2a628eeb..a73d69166642fc737a8d5034f586a20d5ee708e7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,8 @@ #include <pybind11/pybind11.h> #include <pybind11/stl.h> // This header is needed to work with STL containers like std::vector +#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> + // #define VERSION_INFO 1.0 #define STRINGIFY(x) #x