From 14243005c70d47fadc918031b24747e6c417d7f5 Mon Sep 17 00:00:00 2001 From: Pavol Hanzel Date: Tue, 4 Dec 2018 15:35:38 +0100 Subject: Binary-api wrappers: IP and interfaces Change-Id: I3b27dae29498346bf9baccd650d5260b0bfc6491 Signed-off-by: Pavol Hanzel --- src/plugins/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/plugins/CMakeLists.txt') diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 2d1b13e..6a4dc32 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -31,6 +31,15 @@ if (NOT SR_PLUGINS_DIR) message(FATAL_ERROR "Cannot get sysrepo plugins directory due to missing pkg-config, set SR_PLUGINS_DIR manually.") endif() +set(BAPI_SRC + ./bapi/bapi.c + ./bapi/bapi_interface.c + ./bapi/bapi_ip.c + ) +add_library(bapi SHARED ${BAPI_SRC}) +target_include_directories(bapi PUBLIC ${VPP_INCLUDE_DIRS} ./bapi) +target_link_libraries(bapi ${VPP_LIBRARIES}) + # plugins sources set(PLUGINS_SOURCES sc_interface.c @@ -43,7 +52,7 @@ set(PLUGINS_SOURCES # build the source code into shared library add_library(vpp-plugins SHARED ${PLUGINS_SOURCES}) -target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} ${SCVPP_LIBRARIES}) +target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} ${SCVPP_LIBRARIES} bapi) # install the plugin into plugins dir install(TARGETS vpp-plugins DESTINATION ${SR_PLUGINS_DIR}) -- cgit 1.2.3-korg