docs: Use newer Ubuntu LTS in tutorial
[vpp.git] / src / plugins / unittest / CMakeLists.txt
1 # Copyright (c) 2018-2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 set(chacha20_poly1305)
15 if (OPENSSL_VERSION VERSION_GREATER_EQUAL 1.1.0)
16     set(chacha20_poly1305 crypto/chacha20_poly1305.c)
17 endif()
18 include_directories(${CMAKE_SOURCE_DIR}/vpp-api ${CMAKE_CURRENT_BINARY_DIR}/../../vpp-api)
19 add_vpp_plugin(unittest
20   SOURCES
21   api_test.c
22   api_fuzz_test.c
23   bier_test.c
24   bihash_test.c
25   bitmap_test.c
26   crypto/aes_cbc.c
27   crypto/aes_ctr.c
28   crypto/aes_gcm.c
29   crypto/aes_gmac.c
30   ${chacha20_poly1305}
31   crypto/rfc2202_hmac_md5.c
32   crypto/rfc2202_hmac_sha1.c
33   crypto/rfc4231.c
34   crypto/sha.c
35   crypto_test.c
36   fib_test.c
37   gso_test.c
38   hash_test.c
39   interface_test.c
40   ipsec_test.c
41   ip_psh_cksum_test.c
42   llist_test.c
43   mactime_test.c
44   mem_bulk_test.c
45   mfib_test.c
46   mpcap_node.c
47   policer_test.c
48   pool_test.c
49   punt_test.c
50   rbtree_test.c
51   session_test.c
52   sparse_vec_test.c
53   string_test.c
54   svm_fifo_test.c
55   segment_manager_test.c
56   tcp_test.c
57   test_buffer.c
58   unittest.c
59   util_test.c
60   vlib_test.c
61   counter_test.c
62
63   COMPONENT
64   vpp-plugin-devtools
65   LINK_LIBRARIES vapiclient
66 )