diff options
author | Damjan Marion <damarion@cisco.com> | 2018-08-26 18:14:46 +0200 |
---|---|---|
committer | Marco Varlese <marco.varlese@suse.de> | 2018-08-27 12:25:48 +0000 |
commit | 4c64b6edc86f7732f4a160b948b3386e4021a265 (patch) | |
tree | 296a8425f5b5274cf772fa3e62c4c145096a481e /src/cmake/plugin.cmake | |
parent | 3ce5f914ed6bd78f4b72bb5dfd4be480084094d1 (diff) |
cmake: add vapi build
Change-Id: Id939a0cbe35601478ad262f49bb0a1abdb62aa45
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake/plugin.cmake')
-rw-r--r-- | src/cmake/plugin.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmake/plugin.cmake b/src/cmake/plugin.cmake index 4087325b0d6..a5b4bf51a16 100644 --- a/src/cmake/plugin.cmake +++ b/src/cmake/plugin.cmake @@ -20,9 +20,11 @@ macro(add_vpp_plugin name) ) set(plugin_name ${name}_plugin) set(api_headers) + file(RELATIVE_PATH rpath ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) foreach(f ${PLUGIN_API_FILES}) - vpp_generate_api_header(${f} plugins) - list(APPEND api_headers ${f}.h ${f}.json) + vpp_generate_api_header(${f} plugins) + list(APPEND api_headers ${f}.h ${f}.json) + set_property(GLOBAL APPEND PROPERTY VPP_API_FILES ${rpath}/${f}) endforeach() add_library(${plugin_name} SHARED ${PLUGIN_SOURCES} ${api_headers}) add_dependencies(${plugin_name} vpp_version_h api_headers) |