cmake_minimum_required(VERSION 3.18)
project(probseer LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
find_package(pybind11 CONFIG REQUIRED)

find_package(Eigen3 REQUIRED)

pybind11_add_module(isocdf_sequential src/probseer/cpp/isocdf_sequential.cpp)
pybind11_add_module(pava_correct src/probseer/cpp/pava_correct.cpp)
pybind11_add_module(cidr src/probseer/cpp/cidr.cpp)

target_link_libraries(cidr PRIVATE Eigen3::Eigen)

install(TARGETS isocdf_sequential pava_correct cidr DESTINATION probseer)