diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-22 11:55:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-11-22 11:55:46 +0000 |
commit | 4d593c09d9cc1496788f7953de25832193064103 (patch) | |
tree | f066cb1cc2d5910ed1f84613f652e27bf6fc7a6c /ctrl/libhicnctrl/CMakeLists.txt | |
parent | 7efe8c9372615d0333d1aa045de5d0c4a171a978 (diff) | |
parent | 4eb89ea4dcad4c01664b5331745f4e9a38facbd2 (diff) |
Merge "[HICN-394] Add route commands add, list, del for the hicn-plugin"
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 |