- LtsUtilsSettings: Fix export header include path (angle brackets) - LtsWidgets: Move LtsUtilsSettings to PUBLIC link libraries - BatteryNotification: Remove unused QDesktopWidget include - DDS/FTC: Wrap ddsftccore library in IF(BUILD_RTI) guards - DDS/FTS: Remove ELSE block, wrap entire library in IF(BUILD_RTI) - DDS/DTC: Wrap entire library definition in IF(BUILD_RTI) - DDS/DTS: Wrap entire library definition in IF(BUILD_RTI) - DDS/DDSConnector: Wrap entire library in IF(BUILD_RTI), remove ELSE - DDS/Routing: Wrap entire library in IF(BUILD_RTI) All RTI Connext DDS-specific libraries (ddscore, ddsQoS, ddsgen, ddsdtc, ddsdts, ddsfts, ddsconnector, routing_plugin) are now properly guarded so BUILD_RTI=OFF builds can succeed.
59 lines
1.1 KiB
CMake
Executable File
59 lines
1.1 KiB
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
|
|
# ddsftc
|
|
ADD_LIBRARY(ddsftc INTERFACE)
|
|
TARGET_INCLUDE_DIRECTORIES(ddsftc
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
)
|
|
TARGET_LINK_LIBRARIES(ddsftc
|
|
INTERFACE
|
|
Qt6::Core
|
|
ddscore
|
|
ddsgen
|
|
ddsQoS
|
|
ddsftccore
|
|
LtsUtilsCoreHeaderOnly
|
|
)
|
|
IF(BUILD_RTI)
|
|
TARGET_LINK_LIBRARIES(ddsftc
|
|
INTERFACE
|
|
ddsfts_connext
|
|
RTI::nddsc
|
|
RTI::nddscpp2
|
|
)
|
|
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
|
|
IF(BUILD_RTI)
|
|
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
|
|
)
|
|
NGL_TARGET_LINK_LIBRARIES(ddsftccore
|
|
PUBLIC
|
|
Qt6::Core
|
|
ddscore
|
|
ddsfts_connext
|
|
RTI::nddsc
|
|
RTI::nddscpp2
|
|
)
|
|
NGL_INSTALL_TARGET(ddsftccore)
|
|
ENDIF(BUILD_RTI)
|