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.
39 lines
718 B
CMake
Executable File
39 lines
718 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
# Created by Christian Ehrlicher, SLSE, 2017-12-05
|
|
#
|
|
|
|
FIND_PACKAGE(KDReports)
|
|
|
|
SET(SRCS
|
|
printing_base.cpp
|
|
printing_base.h
|
|
printing.cpp
|
|
printing.h
|
|
)
|
|
|
|
if (KDReports_FOUND AND BUILD_RTI)
|
|
NGL_ADD_LIBRARY(WS LtsPrinting SHARED ${SRCS})
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(LtsPrinting
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
)
|
|
NGL_TARGET_LINK_LIBRARIES(LtsPrinting
|
|
PRIVATE
|
|
KDReports::KDReports
|
|
LtsSessionData
|
|
LtsSession
|
|
nglsettings
|
|
ngltools
|
|
PUBLIC
|
|
Qt6::PrintSupport
|
|
Qt6::Core
|
|
)
|
|
NGL_INSTALL_TARGET(LtsPrinting)
|
|
else()
|
|
message(STATUS "KDReports not found or BUILD_RTI disabled; skipping LtsPrinting target")
|
|
endif()
|