diff options
author | Pavol Hanzel <pavol.hanzel@pantheon.tech> | 2018-12-04 15:35:38 +0100 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2018-12-18 02:10:52 +0000 |
commit | 14243005c70d47fadc918031b24747e6c417d7f5 (patch) | |
tree | 439e81d2fd859050a08e0dd325fb7cd2c028763e /src/plugins/CMakeLists.txt | |
parent | 53b1826e015b153b1ebc0953f852105ab5f4a402 (diff) |
Binary-api wrappers: IP and interfaces
Change-Id: I3b27dae29498346bf9baccd650d5260b0bfc6491
Signed-off-by: Pavol Hanzel <pavol.hanzel@pantheon.tech>
Diffstat (limited to 'src/plugins/CMakeLists.txt')
-rw-r--r-- | src/plugins/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
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}) |