diff options
author | Damjan Marion <damarion@cisco.com> | 2018-09-07 12:39:02 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-07 19:37:44 +0000 |
commit | 833de8cab672c806176d580a1ebc001f394b2eaf (patch) | |
tree | 6253c4198e789144ae36230f72c9455dc374fd16 /src/vpp-api | |
parent | 0745036cb9ead1a3aaf9686c8c8046cb7285ea52 (diff) |
cmake: set packaging component for different files
Change-Id: I033a1f5cdb24f77462cb5ec90a62226d93f52925
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r-- | src/vpp-api/vapi/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/vpp-api/vapi/CMakeLists.txt b/src/vpp-api/vapi/CMakeLists.txt index abf9ffb14fa..120bfd4d69f 100644 --- a/src/vpp-api/vapi/CMakeLists.txt +++ b/src/vpp-api/vapi/CMakeLists.txt @@ -33,7 +33,11 @@ foreach(f ${VPP_API_FILES}) DEPENDS ${input} vapi_c_gen.py vapi_json_parser.py api_headers COMMENT "Generating VAPI C header ${output}" ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION include/vapi) + install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} + DESTINATION include/vapi + COMPONENT vpp-dev + ) list(APPEND VAPICLIENT_API_CPP_HEADERS ${output}) # C++ VAPI Headers @@ -46,7 +50,11 @@ foreach(f ${VPP_API_FILES}) DEPENDS ${input} vapi_cpp_gen.py vapi_json_parser.py api_headers COMMENT "Generating VAPI C++ header ${output}" ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION include/vapi) + install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} + DESTINATION include/vapi + COMPONENT vpp-dev + ) list(APPEND VAPICLIENT_API_CPP_HEADERS ${output}) endforeach () @@ -73,4 +81,5 @@ install( vapi_internal.h DESTINATION include/vapi + COMPONENT vpp-dev ) |