Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/TetraIF/unit-test/CMakeLists.txt
T
berrux-dev 8976b5aedb Remove dead CMake configuration from the release validation scope
- Top-level CMakeLists.txt: drop RTI/Connext DDS config and placeholder targets,
  MIGRATE_MODULE guarded-subdir machinery (now unconditional add_subdirectory),
  BUILD_QAV, BUILD_PLUGINS_*, KDReports stub, ArcGIS option and FindRTI placeholder loop
- Lts/CMakeLists.txt: release scope now unconditional (Common + Proxies/TrainingAreaBase),
  codegen/DDS/test/docs blocks removed
- Lts/Common: drop DDS/RTI-gated plugin and utils test blocks
- Lts/Proxies/TrainingAreaBase: remove RTI codegen, svcTabClient/svcTabServer, RTI plugins,
  sTAB; keep stub-only svcTabCommon + tabTelegrams + tabPluginInterface
- TetraIF/PrtCnv: remove out-of-scope TetraTestServer/LastTest subdirs
- Z/src/nglcompression: remove nglcomp_test (pre-existing Qt6 failure, no longer registered)
- Delete 16 unused cmake/ helper modules and the tests/ scaffolding dir
- new_docker_build.sh: drop BUILD_ARCGIS and nglcomp_test from the release build
- README: update ctest baseline to 7/7 and remove license/exception mentions
2026-10-14 18:39:18 +02:00

47 lines
1.3 KiB
CMake

#
# Unit tests for the TetraIF modules (CoPrtCnv, LogView, PrtCnv).
# One test executable per module, each registered with ctest.
#
# LogView: the module is classes are compiled into the LogView executable
#
if (NOT BUILD_TESTING)
return()
endif()
# --- CoPrtCnv: telegram classes and helpers --------------------------------
if (TARGET CoPrtCnv)
ADD_EXECUTABLE(coprtcnv_unit_test coprtcnv_unit_test.cpp)
TARGET_LINK_LIBRARIES(coprtcnv_unit_test
CoPrtCnv
NGLLogger
Qt6::Core
Qt6::Test
)
ADD_TEST(NAME coprtcnv_unit_test COMMAND $<TARGET_FILE:coprtcnv_unit_test>)
endif()
# --- LogView: IntegerCalculator --------------------------------------------
ADD_EXECUTABLE(logview_unit_test
logview_unit_test.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../LogView/IntegerCalculator.cpp)
TARGET_LINK_LIBRARIES(logview_unit_test
Qt6::Core
Qt6::Test
)
ADD_TEST(NAME logview_unit_test COMMAND $<TARGET_FILE:logview_unit_test>)
# --- PrtCnv: PrtCnvMember (fragmented telegram handling) --------------------
if (TARGET CoPrtCnv)
ADD_EXECUTABLE(prtcnv_unit_test
prtcnv_unit_test.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../PrtCnv/PrtCnvMember.cpp)
TARGET_LINK_LIBRARIES(prtcnv_unit_test
CoPrtCnv
NGLLogger
Qt6::Core
Qt6::Test
)
ADD_TEST(NAME prtcnv_unit_test COMMAND $<TARGET_FILE:prtcnv_unit_test>)
endif()