vapi: support api clients within vpp process
[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   ${chacha20_poly1305}
30   crypto/rfc2202_hmac_md5.c
31   crypto/rfc2202_hmac_sha1.c
32   crypto/rfc4231.c
33   crypto/sha.c
34   crypto_test.c
35   fib_test.c
36   gso_test.c
37   hash_test.c
38   interface_test.c
39   ipsec_test.c
40   ip_psh_cksum_test.c
41   llist_test.c
42   mactime_test.c
43   mem_bulk_test.c
44   mfib_test.c
45   mpcap_node.c
46   policer_test.c
47   pool_test.c
48   punt_test.c
49   rbtree_test.c
50   session_test.c
51   sparse_vec_test.c
52   string_test.c
53   svm_fifo_test.c
54   segment_manager_test.c
55   tcp_test.c
56   test_buffer.c
57   unittest.c
58   util_test.c
59   vlib_test.c
60   counter_test.c
61
62   COMPONENT
63   vpp-plugin-devtools
64   LINK_LIBRARIES vapiclient
65 )