Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1b157c35 authored by CERUTTI Guillaume's avatar CERUTTI Guillaume
Browse files

add CGAL header + link library : it builds

parent 0daca52a
No related branches found
No related tags found
1 merge request!6add CGAL as a requirement for the CMake target
Pipeline #945458 passed
......@@ -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})
......
......@@ -29,6 +29,8 @@ test = ["pytest"]
[tool.scikit-build]
cmake.verbose = true
logging.level = "INFO"
wheel.expand-macos-universal-tags = true
......
#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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment