mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add rtp node to CMakeLists
adapted from libnanomsg dependencies
This commit is contained in:
parent
a1e43c7f00
commit
de34ad2cda
2 changed files with 11 additions and 0 deletions
|
@ -109,6 +109,10 @@ pkg_check_modules(NANOMSG IMPORTED_TARGET nanomsg)
|
|||
if(NOT NANOMSG_FOUND)
|
||||
pkg_check_modules(NANOMSG IMPORTED_TARGET libnanomsg>=1.0.0)
|
||||
endif()
|
||||
pkg_check_modules(RE IMPORTED_TARGET re)
|
||||
if(NOT RE_FOUND)
|
||||
pkg_check_modules(RE IMPORTED_TARGET libre>=1.0.0)
|
||||
endif()
|
||||
|
||||
# Build options
|
||||
option(WITH_HOOKS "Build with support for processing hook plugins" ON)
|
||||
|
|
|
@ -125,6 +125,13 @@ if(IBVERBS_FOUND AND RDMACM_FOUND)
|
|||
list(APPEND LIBRARIES ${IBVERBS_LIBRARIES} ${RDMACM_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# Enable RTP node type when libre is available
|
||||
if(RE_FOUND AND WITH_IO)
|
||||
list(APPEND NODE_SRC rtp.c)
|
||||
list(APPEND INCLUDE_DIRS ${RE_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARIES PkgConfig::RE)
|
||||
endif()
|
||||
|
||||
add_library(nodes STATIC ${NODE_SRC})
|
||||
target_include_directories(nodes PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(nodes LINK_PRIVATE ${LIBRARIES})
|
||||
|
|
Loading…
Add table
Reference in a new issue