summaryrefslogtreecommitdiffstats
path: root/src/plugins/CMakeLists.txt
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-08-21 06:34:00 -0700
committerNeale Ranns <nranns@cisco.com>2018-08-22 08:06:55 +0000
commitffec78649735363778a192ad581020e7b73b472d (patch)
tree2b10ac5c187abeb2e7d1508c6b8f36d7e1a3a700 /src/plugins/CMakeLists.txt
parent505ec22c64b294fe683a99958a65d7979c9ccaaf (diff)
CMake: install .json files in ROOT/share/... for papi.
Change-Id: I1a5325c5f026ba5e8d89608c285e934a6e1c16e6 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/plugins/CMakeLists.txt')
-rw-r--r--src/plugins/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
index 34d956d4f77..56cb6ef39fc 100644
--- a/src/plugins/CMakeLists.txt
+++ b/src/plugins/CMakeLists.txt
@@ -20,8 +20,8 @@ macro(add_vpp_plugin plugin_name)
set(api_headers)
foreach(f ${ARGN})
if(${f} MATCHES ".*\.api$")
- vpp_generate_api_header(${f})
- list(APPEND api_headers ${f}.h)
+ vpp_generate_api_header(${f} plugins)
+ list(APPEND api_headers ${f}.h ${f}.json)
endif()
endforeach()
add_library(${plugin_name} SHARED ${ARGN} ${api_headers})
@@ -36,7 +36,7 @@ macro(add_vpp_api_test_plugin plugin_name)
set(api_headers)
foreach(f ${ARGN})
if(${f} MATCHES ".*\.api$")
- vpp_generate_api_header(${f})
+ vpp_generate_api_header(${f} plugins)
list(APPEND api_headers ${f}.h)
endif()
endforeach()