cmake: handle api_test_plugins in add_vpp_plugin macro
[vpp.git] / src / plugins / lb / CMakeLists.txt
index 4df9dae..85acb62 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_vpp_plugin(lb_plugin
-  lb.api
+add_vpp_plugin(lb
+  SOURCES
   api.c
   cli.c
   lb.c
   node.c
   util.c
-)
 
-add_vpp_api_test_plugin(lb_test_plugin
+  API_FILES
   lb.api
+
+  API_TEST_SOURCES
   lb_test.c
 )