From 7d38205336b7edf68b613b7e55804811758a194b Mon Sep 17 00:00:00 2001 From: "drenfong.wang" Date: Thu, 14 Feb 2019 04:30:45 +0000 Subject: add header file path Change-Id: Iff471abeae0759f86e6d762ec9c4afb8941b4f24 Signed-off-by: drenfong.wang --- src/plugins/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index a96a06e..ae363e0 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -48,6 +48,8 @@ set(BAPI_SRC ./bapi/bapi_ip.c ) add_library(bapi SHARED ${BAPI_SRC}) +ADD_DEPENDENCIES(bapi scvpp) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../scvpp/src) target_include_directories(bapi PUBLIC ${VPP_INCLUDE_DIRS} ./bapi) target_link_libraries(bapi ${VPP_LIBRARIES}) @@ -65,7 +67,8 @@ set(PLUGINS_SOURCES # build the source code into shared library add_library(vpp-plugins SHARED ${PLUGINS_SOURCES}) ADD_DEPENDENCIES(vpp-plugins scvpp) -target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} ${SCVPP_LIBRARIES} bapi) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../scvpp/src) +target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} bapi) # install the plugin into plugins dir install(TARGETS vpp-plugins DESTINATION ${SR_PLUGINS_DIR}) -- cgit 1.2.3-korg