cmake_minimum_required(VERSION 3.18)

project(${SKBUILD_PROJECT_NAME} LANGUAGES CXX)

find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module)
find_package(nanobind CONFIG REQUIRED)
find_package(meshsearch 1.0 CONFIG REQUIRED)

nanobind_add_module(_core src/paircount.cpp)
target_link_libraries(_core PRIVATE meshsearch::meshsearch)

install(TARGETS _core LIBRARY DESTINATION paircount)
