aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/netmap/CMakeLists.txt
blob: d53a9e0911ad4411f6720fa77a42fcb9214bc667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Tom Jones <thj@freebsd.org>
#
# This software was developed by Tom Jones <thj@freebsd.org> under sponsorship
# from the FreeBSD Foundation.
#

if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
  message(WARNING "Netmap is only currently support on FreeBSD  - netmap plugin disabled")
  return()
endif()

add_vpp_plugin(netmap
  SOURCES
  plugin.c
  netmap.c
  node.c
  device.c
  cli.c
  netmap_api.c

  MULTIARCH_SOURCES
  node.c
  device.c

  INSTALL_HEADERS
  netmap.h
  net_netmap.h

  API_FILES
  netmap.api
)