mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Added the api-client node type to CMakeLists
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
This commit is contained in:
parent
ade044ee44
commit
b3b08fc684
2 changed files with 9 additions and 0 deletions
|
@ -188,6 +188,7 @@ cmake_dependent_option(WITH_TOOLS "Build auxilary tools"
|
|||
cmake_dependent_option(WITH_WEB "Build with internal webserver" "${WITH_DEFAULTS}" "LIBWEBSOCKETS_FOUND" OFF)
|
||||
|
||||
cmake_dependent_option(WITH_NODE_AMQP "Build with amqp node-type" "${WITH_DEFAULTS}" "RABBITMQ_C_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_API_CLIENT "Build with api-client node-type" "${WITH_DEFAULTS}" "" OFF)
|
||||
cmake_dependent_option(WITH_NODE_CAN "Build with can node-type" "${WITH_DEFAULTS}" "" OFF)
|
||||
cmake_dependent_option(WITH_NODE_COMEDI "Build with comedi node-type" "${WITH_DEFAULTS}" "COMEDILIB_FOUND" OFF)
|
||||
cmake_dependent_option(WITH_NODE_ETHERCAT "Build with ethercat node-type" "${WITH_DEFAULTS}" "ETHERLAB_FOUND; NOT WITHOUT_GPL" OFF)
|
||||
|
@ -298,6 +299,7 @@ add_feature_info(TOOLS WITH_TOOLS "Build auxil
|
|||
add_feature_info(WEB WITH_WEB "Build with internal webserver")
|
||||
|
||||
add_feature_info(NODE_AMQP WITH_NODE_AMQP "Build with amqp node-type")
|
||||
add_feature_info(NODE_API_CLIENT WITH_NODE_API_CLIENT "Build with api-client node-type")
|
||||
add_feature_info(NODE_CAN WITH_NODE_CAN "Build with can node-type")
|
||||
add_feature_info(NODE_COMEDI WITH_NODE_COMEDI "Build with comedi node-type")
|
||||
add_feature_info(NODE_ETHERCAT WITH_NODE_ETHERCAT "Build with ethercat node-type")
|
||||
|
|
|
@ -186,6 +186,13 @@ if(WITH_NODE_WEBRTC)
|
|||
list(APPEND LIBRARIES LibDataChannel::LibDataChannel)
|
||||
endif()
|
||||
|
||||
# Enable REST API client support
|
||||
if(WITH_NODE_API_CLIENT)
|
||||
list(APPEND NODE_SRC api_client.cpp)
|
||||
list(APPEND INCLUDE_DIRECTORIES ${CURL_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARIES ${CURL_LIBRARIES})
|
||||
endif()
|
||||
|
||||
add_library(nodes STATIC ${NODE_SRC})
|
||||
target_include_directories(nodes PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(nodes PUBLIC ${LIBRARIES})
|
||||
|
|
Loading…
Add table
Reference in a new issue