X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2FCMakeLists.txt;h=5477674f22a6a6bc2d49bfd95a6cb958229bab7d;hb=2c41a61d5fc87737b9b46b88cb9271d0f987721e;hp=f2986a95c0d080c5830b4860aa18030cae3cac35;hpb=74449b8b68801e0938f528f19d69e75644cb2ee9;p=vpp.git diff --git a/src/plugins/mactime/CMakeLists.txt b/src/plugins/mactime/CMakeLists.txt index f2986a95c0d..5477674f22a 100644 --- a/src/plugins/mactime/CMakeLists.txt +++ b/src/plugins/mactime/CMakeLists.txt @@ -18,10 +18,25 @@ add_vpp_plugin(mactime API_FILES mactime.api -) -add_vpp_api_test_plugin(mactime_test - mactime.api + 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()