Adds missing toolchain packages and include dirs so generated headers resolve.
46 lines
860 B
CMake
Executable File
46 lines
860 B
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
IF(BUILD_RTI)
|
|
|
|
SET(SRCS
|
|
dds_connector.cpp
|
|
dds_connector.h
|
|
publisher.cpp
|
|
publisher.h
|
|
pub_sub_base.cpp
|
|
pub_sub_base.h
|
|
pub_sub_base_p.h
|
|
subscriber.cpp
|
|
subscriber.h
|
|
)
|
|
|
|
NGL_ADD_LIBRARY2(AAR SV WS HLA ddsconnector SHARED ${SRCS})
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(ddsconnector
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
# dds_connector.h includes the generated ddsconnector_export.h with a
|
|
# quoted include; consumers (svcFilterManagement etc.) resolve it only
|
|
# if the binary dir with the GENERATE_EXPORT_HEADER output is exported.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}
|
|
)
|
|
NGL_TARGET_LINK_LIBRARIES(ddsconnector
|
|
PRIVATE
|
|
NGLLogger
|
|
PUBLIC
|
|
RTI::nddsc
|
|
RTI::nddscore
|
|
RTI::nddscpp2
|
|
ddsQoS
|
|
ddsdtc
|
|
ddsdts
|
|
ProjectConfig
|
|
Qt6::Core
|
|
)
|
|
|
|
ENDIF(BUILD_RTI)
|