Systematic fix for BUILD_RTI conditional compilation: - Lts/Common: Wrap all DDS-dependent libraries in IF(BUILD_RTI) - LtsAppManager, LtsCoordTrans, LtsCoordinate, LtsLogin - LtsMultiMonitor, LtsPluginManager, LtsPrinting - LtsProjectionWorkstation, LtsScriptTimeline, LtsSession - LtsTimelineClassic, LtsUtilsCore, LtsUtilsGui, LtsUtilsGuiDds - Lts/DDS: Add BUILD_RTI guards to Core, DDSConnector, DdsUnitTests, FTC, FTS - Lts/Plugins: Add BUILD_RTI guards to FilterManagement, OperatorManagement, SituationReplayManagement - Lts/Proxies: Add BUILD_RTI guards to Buildings, CombatNetRadio, ComponentMonitor, GuezNasat, TrainingAreaBase, TrainingAreaBaseOC - Lts/Services: Add BUILD_RTI guards to all 30+ service modules - Z/nglwidgets: Add BUILD_RTI guards, fix Poppler Qt6 headers Qt6 compatibility fixes: - LtsCoordTrans: QOverload signal signature, QChar constructor - LtsMultiMonitor: setMargin→setContentsMargins, remove deprecated HighQualityAntialiasing - nglwidgets: Poppler Qt5→Qt6 header migration - Add FindPopplerQt6.cmake for Qt6 Poppler detection Part of Qt5→Qt6 migration with RTI DDS support.
60 lines
1.0 KiB
CMake
Executable File
60 lines
1.0 KiB
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
IF(BUILD_RTI)
|
|
ADD_LIBRARY(ddsfts_connext INTERFACE)
|
|
TARGET_INCLUDE_DIRECTORIES(ddsfts_connext
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
)
|
|
TARGET_LINK_LIBRARIES(ddsfts_connext
|
|
INTERFACE
|
|
RTI::nddscpp2
|
|
)
|
|
SET(SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/connext.h
|
|
)
|
|
TARGET_SOURCES(ddsfts_connext INTERFACE ${SRCS})
|
|
ENDIF()
|
|
|
|
SET(SRCS
|
|
generic_fts.h ;# Interface
|
|
generic_fts_impl.h ;# Implementation, using internal class GenericFTCInternal
|
|
generic_fts_internal.h
|
|
generic_fts_internal.cpp
|
|
)
|
|
|
|
NGL_ADD_LIBRARY2(WS AAR SV HLA ddsfts SHARED ${SRCS})
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
)
|
|
IF(BUILD_RTI)
|
|
IF(BUILD_RTI)
|
|
NGL_TARGET_LINK_LIBRARIES(ddsfts
|
|
PRIVATE
|
|
RTI::nddscore
|
|
ProjectConfig
|
|
ddsQoS
|
|
PUBLIC
|
|
Qt6::Core
|
|
RTI::nddsc
|
|
RTI::nddscpp2
|
|
ddsgen
|
|
ddsfts_connext
|
|
)
|
|
ENDIF(BUILD_RTI)
|
|
ELSE()
|
|
NGL_TARGET_LINK_LIBRARIES(ddsfts
|
|
PRIVATE
|
|
ProjectConfig
|
|
ddsQoS
|
|
PUBLIC
|
|
Qt6::Core
|
|
ddsgen
|
|
)
|
|
ENDIF()
|