Fix BUILD_RTI=OFF build: Guard RTI-only DDS modules

- LtsUtilsSettings: Fix export header include path (angle brackets)
- LtsWidgets: Move LtsUtilsSettings to PUBLIC link libraries
- BatteryNotification: Remove unused QDesktopWidget include
- DDS/FTC: Wrap ddsftccore library in IF(BUILD_RTI) guards
- DDS/FTS: Remove ELSE block, wrap entire library in IF(BUILD_RTI)
- DDS/DTC: Wrap entire library definition in IF(BUILD_RTI)
- DDS/DTS: Wrap entire library definition in IF(BUILD_RTI)
- DDS/DDSConnector: Wrap entire library in IF(BUILD_RTI), remove ELSE
- DDS/Routing: Wrap entire library in IF(BUILD_RTI)

All RTI Connext DDS-specific libraries (ddscore, ddsQoS, ddsgen,
ddsdtc, ddsdts, ddsfts, ddsconnector, routing_plugin) are now
properly guarded so BUILD_RTI=OFF builds can succeed.
This commit is contained in:
torsten committed 2026-08-23 01:19:06 +02:00
1 parent f6cbb9021f
commit c042faae9e
9 files changed
+48 -60

No files matched your search

@@ -5,6 +5,7 @@
#
IF(BUILD_RTI)
ADD_LIBRARY(ddsfts_connext INTERFACE)
TARGET_INCLUDE_DIRECTORIES(ddsfts_connext
INTERFACE
@@ -18,7 +19,6 @@ SET(SRCS
${CMAKE_CURRENT_SOURCE_DIR}/connext.h
)
TARGET_SOURCES(ddsfts_connext INTERFACE ${SRCS})
ENDIF()
SET(SRCS
generic_fts.h ;# Interface
@@ -33,7 +33,6 @@ NGL_TARGET_INCLUDE_DIRECTORIES(ddsfts
${CMAKE_CURRENT_SOURCE_DIR}/../../
${CMAKE_CURRENT_BINARY_DIR}/../../Proxies/TrainingAreaBase
)
IF(BUILD_RTI)
NGL_TARGET_LINK_LIBRARIES(ddsfts
PRIVATE
RTI::nddscore
@@ -47,14 +46,5 @@ NGL_TARGET_LINK_LIBRARIES(ddsfts
ddsgen
ddsfts_connext
)
ELSE()
NGL_TARGET_LINK_LIBRARIES(ddsfts
PRIVATE
ProjectConfig
ddsQoS
svcTabCommon
PUBLIC
Qt6::Core
ddsgen
)
ENDIF()
ENDIF(BUILD_RTI)