bonding: support custom interface IDs
[vpp.git] / src / plugins / perfmon / CMakeLists.txt
index 30e1f2c..340c560 100644 (file)
@@ -18,21 +18,16 @@ add_vpp_plugin(perfmon
   parse_util.c
 )
 
-# Reenable / extend when .json file license issue fixed
-#
-# set (PERFMON_JSON_FILES
-#  haswell_core_v28.json
-#  haswellx_core_v20.json
-#  ivybridge_core_v21.json
-#  ivytown_core_v20.json
-#  jaketown_core_v20.json
-#  sandybridge_core_v16.json
-#  skylake_core_v42.json
-#  skylakex_core_v1.12.json
-# )
+install(
+  FILES PerfmonTables.tar.xz
+  DESTINATION share/vpp/plugins/perfmon
+  COMPONENT vpp-dev
+)
 
-# install(
-#  FILES ${PERFMON_JSON_FILES}
-#  DESTINATION share/vpp/plugins/perfmon
-#  COMPONENT vpp-dev
-# )
+option(VPP_BUILD_MAPFILE_TOOL "Build perfmon mapfile utility." OFF)
+if(VPP_BUILD_MAPFILE_TOOL)
+  add_vpp_executable(mapfile_tool
+    SOURCES mapfile_tool.c
+    LINK_LIBRARIES vppinfra Threads::Threads
+    )
+endif(VPP_BUILD_MAPFILE_TOOL)