Stats: Include stat_segment.h in packages.
[vpp.git] / src / vpp / CMakeLists.txt
index 78ca867..16843f7 100644 (file)
@@ -46,6 +46,7 @@ foreach(file ${VPP_API_FILES})
   install(
     FILES ${CMAKE_CURRENT_BINARY_DIR}/${file}.h
     DESTINATION include/vpp/${dir}
+    COMPONENT vpp-dev
   )
 endforeach()
 
@@ -55,7 +56,7 @@ set(VPP_SOURCES
   app/version.c
   oam/oam.c
   oam/oam_api.c
-  stats/stats.c
+  stats/stats_to_be_deprecated.c
   stats/stat_segment.c
   api/api.c
   api/json_format.c
@@ -81,6 +82,7 @@ add_vpp_executable(vpp
 add_vpp_headers(vpp
   api/vpe_msg_enum.h
   api/vpe_all_api_h.h
+  stats/stat_segment.h
 )
 
 ##############################################################################
@@ -112,9 +114,8 @@ add_vpp_executable(summary_stats_client
 
 add_vpp_executable(vpp_get_stats
   SOURCES app/vpp_get_stats.c
-  LINK_LIBRARIES vppapiclient vppinfra svm vlibmemoryclient
+  LINK_LIBRARIES vppapiclient vppinfra
   DEPENDS api_headers
-  NO_INSTALL
 )
 
 add_vpp_executable(vpp_prometheus_export