aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/sysrepo-plugins/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/sysrepo-plugins/CMakeLists.txt')
-rw-r--r--ctrl/sysrepo-plugins/CMakeLists.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/ctrl/sysrepo-plugins/CMakeLists.txt b/ctrl/sysrepo-plugins/CMakeLists.txt
index d6f319fdb..4671794a0 100644
--- a/ctrl/sysrepo-plugins/CMakeLists.txt
+++ b/ctrl/sysrepo-plugins/CMakeLists.txt
@@ -23,9 +23,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Mo
include(GNUInstallDirs)
include(BuildMacros)
-find_package(PkgConfig)
-find_package(Sysrepo)
-find_package_wrapper(Vpp REQUIRED)
+find_package(PkgConfig REQUIRED)
+find_package(Sysrepo REQUIRED)
if (NOT SRPD_PLUGINS_PATH)
if (PKG_CONFIG_FOUND)
@@ -38,7 +37,9 @@ if (NOT SRPD_PLUGINS_PATH)
endif()
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
- find_package_wrapper(HicnPlugin REQUIRED)
+ find_package(VPP REQUIRED)
+ find_package(HicnPlugin REQUIRED)
+ find_package(Libhicn REQUIRED)
add_subdirectory(hicn-plugin)
else()
if (BUILD_HICNPLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
@@ -49,4 +50,9 @@ else()
endif()
# add subdirectories
+
include(Packaging)
+if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
+ include(Packager)
+ make_packages()
+endif()