-# Copyright (c) 2016 Cisco and/or its affiliates.
+# Copyright (c) 2018 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
# See the License for the specific language governing permissions and
# limitations under the License.
-vppapitestplugins_LTLIBRARIES += sample_test_plugin.la
-vppplugins_LTLIBRARIES += sample_plugin.la
+include_directories(${CMAKE_SOURCE_DIR})
-sample_plugin_la_SOURCES = \
- sample/sample.c \
- sample/node.c \
- sample/sample_plugin.api.h
+# for generated API headers:
+include_directories(${CMAKE_BINARY_DIR})
-API_FILES += sample/sample.api
+add_vpp_plugin(sample
+ SOURCES
+ node.c
+ sample.c
-nobase_apiinclude_HEADERS += \
- sample/sample_all_api_h.h \
- sample/sample_msg_enum.h \
- sample/sample.api.h
+ MULTIARCH_SOURCES
+ node.c
-sample_test_plugin_la_SOURCES = sample/sample_test.c sample/sample_plugin.api.h
+ API_FILES
+ sample.api
-# vi:syntax=automake
+ API_TEST_SOURCES
+ sample_test.c
+)