7664014153afe923bcd4988d042f9f0d7b36714d
[vpp.git] / src / svm / 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 ##############################################################################
15 # svm shared library
16 ##############################################################################
17 add_vpp_library(svm
18   SOURCES
19   fifo_segment.c
20   message_queue.c
21   queue.c
22   svm.c
23   ssvm.c
24   svm_fifo.c
25
26   MULTIARCH_SOURCES
27   svm_fifo.c
28
29   INSTALL_HEADERS
30   fifo_segment.h
31   message_queue.h
32   queue.h
33   ssvm.h
34   svm_common.h
35   svm_fifo.h
36   svm.h
37   svmdb.h
38
39   LINK_LIBRARIES vppinfra rt pthread
40 )
41
42 ##############################################################################
43 # svmdb shared library
44 ##############################################################################
45 add_vpp_library(svmdb
46   SOURCES svmdb.c
47   LINK_LIBRARIES svm vppinfra rt pthread
48   )
49
50 ##############################################################################
51 # svm tools
52 ##############################################################################
53
54 add_vpp_executable(svmtool
55   SOURCES svmtool.c
56   LINK_LIBRARIES vppinfra svm
57 )
58
59 add_vpp_executable (svmdbtool
60   SOURCES svmdbtool.c
61   LINK_LIBRARIES vppinfra svm svmdb
62 )