summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordrenfong.wang <drenfong.wang@intel.com>2019-02-14 04:30:45 +0000
committerdrenfong.wang <drenfong.wang@intel.com>2019-02-14 04:45:38 +0000
commit7d38205336b7edf68b613b7e55804811758a194b (patch)
treedb7695c291826788263efacde1a07ab4b7d74819 /src
parent1d9ca6615329d6d21c25601e69140eaa69a892db (diff)
add header file path
Change-Id: Iff471abeae0759f86e6d762ec9c4afb8941b4f24 Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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})