option(VDE_BUILD_PYTHON "Build Python bindings" OFF)

if(VDE_BUILD_PYTHON)
    find_package(pybind11 REQUIRED)
    message(STATUS "Building Python bindings for ViewDesignEngine")

    pybind11_add_module(_vde
        bindings.cpp
    )
    target_link_libraries(_vde PRIVATE vde)
    target_compile_definitions(_vde PRIVATE VDE_BUILDING_PYTHON)
endif()
