aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-08-17 12:57:00 +0200
committerNeale Ranns <neale@graphiant.com>2021-08-18 08:05:16 +0000
commit91144fbf54764feb005a33419d0129febd2365d4 (patch)
tree7a6c6fbd3babf4db5ce1db27c7f54a92ca7338e1 /src/cmake
parent4de12b9c62757f7297c6ac5c7eedff17082f4ee8 (diff)
vat2: add shared memory argument
Add prefix argument to specifiy shared memory segment. Add long arguments. Add argument to dump apis. Add help. Add template argument E.g: vat2 --template sw_interface_add_del_address { "_msgname": "sw_interface_add_del_address", "sw_if_index": 0, "is_add": false, "del_all": false, "prefix": "0.0.0.0" } Usage: vat2 [OPTION] <message-name> <JSON object> Send API message to VPP and print reply -d, --debug Print additional information -p, --prefix Specify shared memory prefix to connect to a given VPP instance -f, --file File containing a JSON object with the arguments for the message to send --dump-apis List all APIs available from connected VPP instance Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I2d32483a727bc16990c9a30dfa9bc1fa7b1fa85a Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/library.cmake11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake
index 560b2c97d5c..d19eb3c80cc 100644
--- a/src/cmake/library.cmake
+++ b/src/cmake/library.cmake
@@ -129,13 +129,12 @@ macro(add_vpp_test_library lib)
PREFIX ""
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/vat2_plugins)
- # Later: Install and package
# install .so
- #install(
- # TARGETS ${test_lib}
- # DESTINATION ${VPP_LIBRARY_DIR}/vat2_plugins
- # #COMPONENT ${ARG_COMPONENT}
- # )
+ install(
+ TARGETS ${test_lib}
+ DESTINATION ${VPP_LIBRARY_DIR}/vat2_plugins
+ COMPONENT ${ARG_COMPONENT}
+ )
endforeach()
endmacro()