X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2FCMakeLists.txt;h=7111f415f257251b98a8e2815b49eaa6ed37f72f;hb=844a0e8b07010ccdd5af211b91d022aa8d43c934;hp=9f5d431480af1a0bde6d2a79ddcd28105c74b0a2;hpb=f8520159d5e5b4988f56919d34aae3ee7ce38cdb;p=vpp.git diff --git a/src/plugins/mactime/CMakeLists.txt b/src/plugins/mactime/CMakeLists.txt index 9f5d431480a..7111f415f25 100644 --- a/src/plugins/mactime/CMakeLists.txt +++ b/src/plugins/mactime/CMakeLists.txt @@ -14,15 +14,29 @@ add_vpp_plugin(mactime SOURCES mactime.c + builtins.c node.c API_FILES mactime.api - INSTALL_HEADERS - mactime_all_api_h.h - mactime_msg_enum.h - API_TEST_SOURCES mactime_test.c ) + +option(VPP_BUILD_MACTIME_TOP "Build mactime plugin 'top' tool" OFF) +if(VPP_BUILD_MACTIME_TOP) + add_vpp_executable(mactime_top ENABLE_EXPORTS + SOURCES + mactime_top.c + + DEPENDS api_headers + + LINK_LIBRARIES + vlibmemoryclient + vppapiclient + svm + vppinfra + Threads::Threads + ) +endif()