Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/HighLevelArchitecture/Common/CMakeLists.txt
T
torstenandCopilot 010f91928a Fix: Wrap all RTI::nddscpp2 links in IF(BUILD_RTI) conditionals
- 43 CMakeLists.txt files updated to properly condition RTI dependencies
- All NGL_TARGET_LINK_LIBRARIES blocks containing RTI:: references
  are now wrapped in IF(BUILD_RTI) blocks
- This allows building with BUILD_RTI=OFF without RTI Connext installation
- Fixes CMake configure errors about non-existent /opt/RTI paths

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 02:41:22 +02:00

60 lines
1.2 KiB
CMake
Executable File

#
# $Id$
# $HeadURL$
# $Author$
#
#
# --- Library HlaCommon -------------------------------------------------
#
SET(SRCS_exe
logger.cpp
logger.h
player_callback.cpp
player_callback.h
settings.cpp
settings.h
identifierstruct.cpp
identifierstruct.h
typestruct.cpp
typestruct.h
participantposition.cpp
participantposition.h
participantinformation.cpp
participantinformation.h
)
# Due to debug output for EntityTypeStruct
SET_SOURCE_FILES_PROPERTIES(ngs_connector.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
NGL_ADD_LIBRARY2(HLA HlaCommon SHARED ${SRCS_exe})
NGL_TARGET_INCLUDE_DIRECTORIES(HlaCommon
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../
)
IF(BUILD_RTI)
NGL_TARGET_LINK_LIBRARIES(HlaCommon
LtsCoordTrans # ParticipantPosition
NGLLogger
nglsettings
Qt6::Core
svcPpmClient # ParticipantInformation
svcPpmCommon
ngltools # NGL::findProjectConfigFiles
NGS::NGS
ddsconnector
# RTI::nddsc
# RTI::nddscpp2
)
ENDIF(BUILD_RTI)
#NGL_INSTALL(AAR SV FILES
# log4cxx_hla.props
# swconf.cfg
# DESTINATION bin)
#NGL_INSTALL(AAR SV FILES
# RPRFOM20d17E_guez.xml
# DESTINATION bin RENAME RPRFOM20d17E.xml)
#NGL_ADD_TARGET_LINK(HlaCommon pHLA)