# Unit tests:
mola_add_test(
  TARGET  test-imu-rotation-integrator
  SOURCES test-imu-rotation-integrator.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)

mola_add_test(
  TARGET  test-velocity-buffer
  SOURCES test-velocity-buffer.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)

mola_add_test(
  TARGET  test-trajectory-from-buffer
  SOURCES test-trajectory-from-buffer.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)

mola_add_test(
  TARGET  test-imu-initial-calibrator
  SOURCES test-imu-initial-calibrator.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)

mola_add_test(
  TARGET  test-imu-transformer
  SOURCES test-imu-transformer.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)

mola_add_test(
  TARGET  test-so3-jacobians
  SOURCES test-so3-jacobians.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
    Eigen3::Eigen
)

mola_add_test(
  TARGET  test-imu-preintegrator
  SOURCES test-imu-preintegrator.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
    Eigen3::Eigen
)

mola_add_test(
  TARGET  test-map-gravity-estimator
  SOURCES test-map-gravity-estimator.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
    Eigen3::Eigen
)

mola_add_test(
  TARGET  test-imu-averager
  SOURCES test-imu-averager.cpp
  LINK_LIBRARIES
    mola::mola_imu_preintegration
)
