add_library(kwiver_descriptor SHARED descriptor.hpp descriptor_array_of.hpp descriptor_dynamic.hpp)
set_target_properties(kwiver_descriptor PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(kwiver_descriptor PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

autopybind11_fetch_build_pybind11()

autopybind11_add_module("descriptor"
                       JSON_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/wrapper_input.json
                       CONFIG_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/config.yml
                       DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
                       LINK_LIBRARIES kwiver_descriptor
                       )
