cmake: improve add_vpp_plugin macro
[vpp.git] / src / plugins / l2e / CMakeLists.txt
index ba9cc6a..27d5659 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_vpp_plugin(l2e_plugin
-  l2e.api
+add_vpp_plugin(l2e
+  SOURCES
   l2e_api.c
   l2e.c
+
+  API_FILES
+  l2e.api
 )