diff options
author | drenfong.wang <drenfong.wang@intel.com> | 2019-02-14 07:19:19 +0000 |
---|---|---|
committer | drenfong.wang <drenfong.wang@intel.com> | 2019-02-14 07:24:49 +0000 |
commit | 69da1a8a429c57edeac94e48e38e0758556ca3bb (patch) | |
tree | a3c6c837665536064a42d670a9605c6ee709fde6 /src | |
parent | dcfc30818cc7fe43a65a11e3e0775ac9b77cb17a (diff) |
fix rpm build and deb build
Change-Id: I6a48e0aaf6ab1fdccac30ccca7b8ac85513da2e9
Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 08003f7..ae7bb68 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake") find_package(VPP) find_package(PkgConfig) pkg_check_modules(SYSREPO REQUIRED libsysrepo) -pkg_check_modules(SCVPP REQUIRED libscvpp) +#pkg_check_modules(SCVPP REQUIRED libscvpp) # get sysrepo plugins directory from pkgconfig if (NOT SR_PLUGINS_DIR) @@ -46,9 +46,12 @@ 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) +ADD_DEPENDENCIES(bapi scvpp) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../scvpp/src) target_link_libraries(bapi ${VPP_LIBRARIES}) # plugins sources @@ -61,9 +64,10 @@ set(PLUGINS_SOURCES openconfig/sys_util.c ) - # build the source code into shared library add_library(vpp-plugins SHARED ${PLUGINS_SOURCES}) +ADD_DEPENDENCIES(vpp-plugins scvpp) +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../scvpp/src) target_link_libraries(vpp-plugins ${SYSREPO_LIBRARIES} ${SCVPP_LIBRARIES} bapi) # install the plugin into plugins dir |