#
# Unit tests for the DDS Core module.
# One test executable per module, each registered with ctest.
#
if (NOT BUILD_TESTING)
  return()
endif()

# --- DDS Core: generated function-reply objects and the CORE logger facade
if (TARGET ddscore)
  ADD_EXECUTABLE(ddscore_unit_test ddscore_unit_test.cpp)
  TARGET_LINK_LIBRARIES(ddscore_unit_test
    ddscore
    NGLLogger
    Qt6::Core
    Qt6::Test
  )
  ADD_TEST(NAME ddscore_unit_test COMMAND $<TARGET_FILE:ddscore_unit_test>)
endif()
