cmake: improve add_vpp_plugin macro
[vpp.git] / src / plugins / memif / CMakeLists.txt
index 54d0bef..b225192 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_vpp_plugin(memif_plugin
-  memif.api
+add_vpp_plugin(memif
+  SOURCES
   memif.c
   memif_api.c
   cli.c
   node.c
   device.c
   socket.c
-)
 
-vpp_library_set_multiarch_sources(memif_plugin
+  API_FILES
+  memif.api
+
+  MULTIARCH_SOURCES
   device.c
   node.c
 )