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.
63 lines
1.3 KiB
CMake
Executable File
63 lines
1.3 KiB
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
|
|
# ddsftc
|
|
ADD_LIBRARY(ddsftc INTERFACE)
|
|
TARGET_INCLUDE_DIRECTORIES(ddsftc
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
)
|
|
IF(BUILD_RTI)
|
|
TARGET_LINK_LIBRARIES(ddsftc
|
|
INTERFACE
|
|
Qt6::Core
|
|
ddsfts_connext
|
|
ddscore # due to the usage of Core::FtReplyState inside generic_ftc_impl.h, only on core.hpp - fixme :/
|
|
ddsgen
|
|
ddsQoS
|
|
RTI::nddsc
|
|
RTI::nddscpp2
|
|
ddsftccore
|
|
LtsUtilsCoreHeaderOnly
|
|
)
|
|
ELSE()
|
|
TARGET_LINK_LIBRARIES(ddsftc
|
|
INTERFACE
|
|
Qt6::Core
|
|
ddscore
|
|
ddsgen
|
|
ddsQoS
|
|
ddsftccore
|
|
LtsUtilsCoreHeaderOnly
|
|
)
|
|
ENDIF()
|
|
SET(SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/generic_ftc.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/generic_ftc.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/generic_ftc_impl.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/generic_ftc_threading.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/generic_ftc_threading.cpp
|
|
)
|
|
|
|
TARGET_SOURCES(ddsftc INTERFACE ${SRCS})
|
|
|
|
|
|
# ddsftccore
|
|
NGL_ADD_LIBRARY2(WS SV HLA ddsftccore SHARED abstract_requester.h abstract_requester.cpp)
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(ddsftccore
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../ # 'DDS/FTC/...' reads better than only FTC
|
|
)
|
|
IF(BUILD_RTI)
|
|
NGL_TARGET_LINK_LIBRARIES(ddsftccore
|
|
PUBLIC
|
|
Qt6::Core
|
|
ddscore
|
|
)
|
|
ENDIF(BUILD_RTI)
|
|
NGL_INSTALL_TARGET(ddsftccore)
|