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

# --- WMS_Interface: JSON/QVariantMap serialization roundtrips
if (TARGET wms_json_ds)
  ADD_EXECUTABLE(wms_json_ds_unit_test wms_json_ds_unit_test.cpp)
  TARGET_LINK_LIBRARIES(wms_json_ds_unit_test
    wms_json_ds
    Qt6::Core
    Qt6::Test
  )
  ADD_TEST(NAME wms_json_ds_unit_test COMMAND $<TARGET_FILE:wms_json_ds_unit_test>)
endif()
