cmake: handle api_test_plugins in add_vpp_plugin macro
[vpp.git] / src / plugins / cdp / CMakeLists.txt
index 9f0b07e..0f3ade8 100644 (file)
@@ -20,10 +20,8 @@ add_vpp_plugin(cdp
 
   API_FILES
   cdp.api
-)
 
-add_vpp_api_test_plugin(cdp_test
-  cdp.api
+  API_TEST_SOURCES
   cdp_test.c
 )