diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-15 08:58:23 +0000 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-20 07:58:12 +0000 |
commit | 4eb89ea4dcad4c01664b5331745f4e9a38facbd2 (patch) | |
tree | f4c6935249f6461a03886ab89532e5563db1f75f /ctrl/libhicnctrl/CMakeLists.txt | |
parent | 40fde5ad542c30e59ac02639e29389085de89de5 (diff) |
[HICN-394] Add route commands add, list, del for the hicn-plugin
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Change-Id: I41641f6d27babaa1c413ecf2fe6eae0e499df97d
Diffstat (limited to 'ctrl/libhicnctrl/CMakeLists.txt')
-rw-r--r-- | ctrl/libhicnctrl/CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/CMakeLists.txt b/ctrl/libhicnctrl/CMakeLists.txt index 960eb6743..43d120473 100644 --- a/ctrl/libhicnctrl/CMakeLists.txt +++ b/ctrl/libhicnctrl/CMakeLists.txt @@ -35,7 +35,11 @@ set(CMAKE_MACOSX_RPATH ON) if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) - find_package_wrapper(Libhicn REQUIRED) + if (BUILD_CTRL_HICNPLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") + find_package_wrapper(HicnPlugin REQUIRED) + else () + find_package_wrapper(Libhicn REQUIRED) + endif() set(HICNCTRL hicnctrl) set(LIBHICNCTRL hicnctrl) @@ -48,6 +52,16 @@ else() list(APPEND DEPENDENCIES ${LIBHICN_STATIC} ) + elseif (BUILD_CTRL_HICNPLUGIN AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") + set(HICN_INCLUDE_DIRS + ${HICN_INCLUDE_DIRS} + ${HICNPLUGIN_INCLUDE_DIRS}) + + set(HICN_LIBRARIES ${HICNPLUGIN_LIBRARIES}) + + list(APPEND DEPENDENCIES + hicn_plugin + ) else () set(HICN_LIBRARIES ${LIBHICN_SHARED}) list(APPEND DEPENDENCIES |