X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2FCMakeLists.txt;h=debf033f71e59bd17fac831d681b405d02fff6a7;hb=cbbc4a2558eca8d78e0bd713ff58c54e294b1819;hp=f2986a95c0d080c5830b4860aa18030cae3cac35;hpb=74449b8b68801e0938f528f19d69e75644cb2ee9;p=vpp.git diff --git a/src/plugins/mactime/CMakeLists.txt b/src/plugins/mactime/CMakeLists.txt index f2986a95c0d..debf033f71e 100644 --- a/src/plugins/mactime/CMakeLists.txt +++ b/src/plugins/mactime/CMakeLists.txt @@ -14,14 +14,30 @@ add_vpp_plugin(mactime SOURCES mactime.c + builtins.c node.c 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()