X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2FCMakeLists.txt;h=37f57ac78232f87a0cba82a445cb03f7a148b976;hb=bc4dc16a5ce891649211200f0e346c76cdef4c56;hp=32f702de36de06e59221b28931d8486aafa4b3ec;hpb=248210c6ca1716ee2c5e6c974051218930fa4c26;p=vpp.git diff --git a/src/vpp/CMakeLists.txt b/src/vpp/CMakeLists.txt index 32f702de36d..37f57ac7823 100644 --- a/src/vpp/CMakeLists.txt +++ b/src/vpp/CMakeLists.txt @@ -28,6 +28,12 @@ add_custom_target(vpp_version_h DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/app/version.h ) +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/app/version.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vpp/app + COMPONENT vpp-dev +) + ############################################################################## # vpp binary ############################################################################## @@ -38,6 +44,12 @@ configure_file( ${CMAKE_CURRENT_BINARY_DIR}/vnet/config.h ) +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/vnet/config.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vpp/vnet + COMPONENT vpp-dev +) + set(VPP_API_FILES api/vpe_types.api api/vpe.api @@ -60,8 +72,6 @@ set(VPP_SOURCES vnet/main.c app/vpe_cli.c app/version.c - stats/stat_segment.c - stats/stat_segment_provider.c api/api.c api/json_format.c api/types.c @@ -84,13 +94,6 @@ add_vpp_executable(vpp DEPENDS vpp_version_h api_headers ) -add_vpp_headers(vpp - api/vpe_msg_enum.h - api/vpe_all_api_h.h - stats/stat_segment.h - stats/stat_segment_shared.h -) - ############################################################################## # vppctl binary ############################################################################## @@ -141,6 +144,10 @@ add_vpp_test_library(vpp ${VPP_API_FILES} ) +add_vat_test_library(vpp + api/api_test.c +) + ############################################################################## # minimal interactive startup.conf - only if not present ##############################################################################