Add BUILD_RTI conditionals for RTI/DDS dependent libraries

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.
This commit is contained in:
torsten committed 2026-08-19 00:12:28 +02:00
1 parent 514ded2739
commit cf6d77c030
78 files changed
+265 -114

No files matched your search

@@ -88,6 +88,8 @@ CONFIGURE_FILE(CTestCustom.ctest ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
CONFIGURE_FILE(lts-cc.conf ${CMAKE_BINARY_DIR}/lts-cc.conf.distrib COPYONLY)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# Add bundled GeographicLib cmake config to find modern targets (GeographicLib::GeographicLib_SHARED)
LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/include/GeographicLib/lib/cmake")
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
IF(WIN32)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
@@ -308,6 +310,16 @@ OPTION(BUILD_TOOLSWS "Build TOOLSWS component" ON)
OPTION(BUILD_TOOLSSV "Build TOOLSSV component" ON)
OPTION(BUILD_HLA "Build HLA component" ON)
# If BUILD_ALL is ON, enable all individual component flags
IF(BUILD_ALL)
SET(BUILD_SV ON CACHE BOOL "Build SV component" FORCE)
SET(BUILD_WS ON CACHE BOOL "Build WS component" FORCE)
SET(BUILD_AAR ON CACHE BOOL "Build AAR component" FORCE)
SET(BUILD_TOOLSWS ON CACHE BOOL "Build TOOLSWS component" FORCE)
SET(BUILD_TOOLSSV ON CACHE BOOL "Build TOOLSSV component" FORCE)
SET(BUILD_HLA ON CACHE BOOL "Build HLA component" FORCE)
ENDIF()
IF(BUILD_RPM)
ADD_SUBDIRECTORY(scripts)
ELSE()