Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/DDS/QosProfile/unit-test/CMakeLists.txt
T
berrux-dev 262fd226f9 Restore in-scope files missing from the merge and scope-aware CMakeLists
The merge from story/release-validation-scope only carried files that
existed at the common base or on that branch. In-scope files added on
story/release-2-cleanup after the base (per-module unit-test dirs, the
Release 2 driver and rpmbuild script) were missing, breaking
ADD_SUBDIRECTORY(unit-test) references.

- Restore the 33 missing in-scope files from story/release-2-cleanup.
- Lts/Common/CMakeLists.txt and LtsUtilsGui/CMakeLists.txt: take the
  story/release-2-cleanup versions (the validation versions still
  reference out-of-scope subdirectories: httq, LtsRestClient,
  LtsWebSocket, ConnectDialog, StyleManager).
2026-11-16 19:04:24 +01:00

31 lines
940 B
CMake

#
# Unit tests for the DDS QosProfile module.
# One test executable per module, each registered with ctest.
#
if (NOT BUILD_TESTING)
return()
endif()
# --- DDS QosProfile: default QoS profile helpers
if (TARGET ddsQoS)
ADD_EXECUTABLE(ddsqos_unit_test ddsqos_unit_test.cpp)
# Path of the module's default_profile.xml fixture (see ddsqos_unit_test.cpp)
TARGET_COMPILE_DEFINITIONS(ddsqos_unit_test PRIVATE
DDSQOS_UNIT_TEST_PROFILE_XML="${CMAKE_CURRENT_SOURCE_DIR}/../default_profile.xml")
TARGET_LINK_LIBRARIES(ddsqos_unit_test
ddsQoS
NGLLogger
Qt6::Core
Qt6::Test
)
# ddsQoS links the RTI DDS libraries PRIVATE - the test needs them itself
# for the RTI policy inline functions used by the QoS helpers
if (TARGET RTI::nddsc)
TARGET_LINK_LIBRARIES(ddsqos_unit_test
RTI::nddsc
RTI::nddscpp2
)
endif()
ADD_TEST(NAME ddsqos_unit_test COMMAND $<TARGET_FILE:ddsqos_unit_test>)
endif()