X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2FCMakeLists.txt;h=5477674f22a6a6bc2d49bfd95a6cb958229bab7d;hb=2c41a61d5fc87737b9b46b88cb9271d0f987721e;hp=ac5077d1860f09bcc8c9a41e4fa9bae769e2b297;hpb=0eb75d0e9c7624a4e8ac69fea7dbe12d39b75096;p=vpp.git diff --git a/src/plugins/mactime/CMakeLists.txt b/src/plugins/mactime/CMakeLists.txt index ac5077d1860..5477674f22a 100644 --- a/src/plugins/mactime/CMakeLists.txt +++ b/src/plugins/mactime/CMakeLists.txt @@ -22,3 +22,21 @@ add_vpp_plugin(mactime 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 + rt m dl crypto + ) +endif()