# CMakeLists.txt
cmake_minimum_required(VERSION 3.14)
project(indicators)

# Find Python
find_package(Python COMPONENTS Interpreter Development REQUIRED)

# Add pybind11
include(FetchContent)
FetchContent_Declare(
    pybind11
    GIT_REPOSITORY https://github.com/pybind/pybind11.git
    GIT_TAG        v2.11.1  # Adjust version as needed
)
FetchContent_MakeAvailable(pybind11)

# Create the binding library
pybind11_add_module(indicators src/bindings.cpp)

# Include directories
target_include_directories(indicators PRIVATE include)

# Set C++ standard
set_target_properties(indicators PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED ON
)
