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:
1 parent
f6cbb9021f
commit
c042faae9e
9 files changed
+48
-60
No files matched your search
@@ -4,6 +4,8 @@
|
||||
# $Author$
|
||||
#
|
||||
|
||||
IF(BUILD_RTI)
|
||||
|
||||
SET(SRCS
|
||||
dds_connector.cpp
|
||||
dds_connector.h
|
||||
@@ -21,29 +23,18 @@ NGL_TARGET_INCLUDE_DIRECTORIES(
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
||||
)
|
||||
IF(BUILD_RTI)
|
||||
NGL_TARGET_LINK_LIBRARIES(ddsconnector
|
||||
PRIVATE
|
||||
NGLLogger
|
||||
PUBLIC
|
||||
RTI::nddsc
|
||||
RTI::nddscore
|
||||
RTI::nddscpp2
|
||||
ddsQoS
|
||||
ddsdtc
|
||||
ddsdts
|
||||
ProjectConfig
|
||||
Qt6::Core
|
||||
)
|
||||
ELSE()
|
||||
NGL_TARGET_LINK_LIBRARIES(ddsconnector
|
||||
PRIVATE
|
||||
NGLLogger
|
||||
PUBLIC
|
||||
ddsQoS
|
||||
ddsdtc
|
||||
ddsdts
|
||||
ProjectConfig
|
||||
Qt6::Core
|
||||
)
|
||||
ENDIF()
|
||||
NGL_TARGET_LINK_LIBRARIES(ddsconnector
|
||||
PRIVATE
|
||||
NGLLogger
|
||||
PUBLIC
|
||||
RTI::nddsc
|
||||
RTI::nddscore
|
||||
RTI::nddscpp2
|
||||
ddsQoS
|
||||
ddsdtc
|
||||
ddsdts
|
||||
ProjectConfig
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
ENDIF(BUILD_RTI)
|
||||
Reference in new issue
Block a user