X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmactime%2FCMakeLists.txt;h=debf033f71e59bd17fac831d681b405d02fff6a7;hb=59f71132e;hp=5f82f4c0fb99e7eff5a0fec57a7a86a0180e0684;hpb=612dd6a955e44d2c0fed1801fb8de585ca695c63;p=vpp.git diff --git a/src/plugins/mactime/CMakeLists.txt b/src/plugins/mactime/CMakeLists.txt index 5f82f4c0fb9..debf033f71e 100644 --- a/src/plugins/mactime/CMakeLists.txt +++ b/src/plugins/mactime/CMakeLists.txt @@ -11,14 +11,33 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_vpp_plugin(mactime_plugin - mactime.api +add_vpp_plugin(mactime + SOURCES mactime.c + builtins.c node.c -) -add_vpp_api_test_plugin(mactime_test_plugin + API_FILES 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()