# xo_pykalmanfilter/src/pykalmanfilter/CMakeLists.txt

set(SELF_LIB xo_pykalmanfilter)
set(SELF_SRCS pykalmanfilter.cpp)

xo_pybind11_library(${SELF_LIB} ${PROJECT_NAME}Targets ${SELF_SRCS})
xo_pybind11_dependency(${SELF_LIB} xo_kalmanfilter)
xo_pybind11_header_dependency(${SELF_LIB} xo_pyreactor)
#xo_pybind11_dependency(${SELF_LIB} xo_pyutil)

# cmake config generated by xo-kalman filter
# (xo-kalmanfilter/cmake/xo_kalmanfilterConfig.cmake)
# doesn't work here.
# kalmanfilterConfig.cmake include path that would make
#   #include <eigen3/Eigen/Dense>
# work;  we want to be able to use
#   #include <Eigen/Dense>
#
# BTW this tells us that there's some discrepancy between what
# cmake does in response to
#
# (A) xo_kalmanfilterTarget.cmake:
#     set_target_properties(xo_kalmanfilter PROPERTIES
#       ..
#       INTERFACE_LINK_LIBRARIES "reactor;Eigen3::Eigen")
#
# (B) xo_external_target_dependency
#       (xo_kalmanfilter Eigen3 Eigen3::Eigen)
#     below
#
#     reminder XO_SUBMODULE_BUILD relies on
#              xo_external_target_dependency() calling find_package()
#
xo_external_target_dependency(${SELF_LIB} Eigen3 Eigen3::Eigen)
#target_link_libraries(${SELF_LIB} PUBLIC Eigen3::Eigen)

# CMakeLists.txt
