hs-test: more debug output in http3 test
[vpp.git] / src / plugins / wireguard / CMakeLists.txt
1
2 # Copyright (c) 2020 Doc.ai and/or its affiliates.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 if(NOT OPENSSL_FOUND)
16   message(WARNING "OpenSSL not found - wireguard plugin disabled")
17   return()
18 endif()
19
20 if (OPENSSL_VERSION VERSION_LESS 1.1.0)
21   message(WARNING "OpenSSL too old - wireguard plugin disabled")
22   return()
23 endif()
24
25 include_directories(${OPENSSL_INCLUDE_DIR})
26
27 list(APPEND WG_BLAKE_SOURCES
28   blake/blake2s.h
29   blake/blake2s.c
30 )
31
32 add_vpp_plugin(wireguard
33   SOURCES
34   ${WG_BLAKE_SOURCES}
35   wireguard.c
36   wireguard.h
37   wireguard_if.c
38   wireguard_if.h
39   wireguard_input.c
40   wireguard_output_tun.c
41   wireguard_handoff.c
42   wireguard_hchacha20.h
43   wireguard_key.c
44   wireguard_key.h
45   wireguard_chachapoly.c
46   wireguard_chachapoly.h
47   wireguard_cli.c
48   wireguard_messages.h
49   wireguard_noise.c
50   wireguard_noise.h
51   wireguard_send.c
52   wireguard_send.h
53   wireguard_cookie.c
54   wireguard_cookie.h
55   wireguard_peer.c
56   wireguard_peer.h
57   wireguard_timer.c
58   wireguard_timer.h
59   wireguard_index_table.c
60   wireguard_index_table.h
61   wireguard_api.c
62
63   LINK_LIBRARIES ${OPENSSL_CRYPTO_LIBRARIES}
64
65   API_FILES
66   wireguard.api
67
68 )