udp: fix csum computation when offload disabled
[vpp.git] / src / plugins / ikev2 / CMakeLists.txt
1 # Copyright (c) 2018 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 if(NOT OPENSSL_FOUND)
15   message(WARNING "openssl headers not found - ikev2 plugin disabled")
16   return()
17 endif()
18
19 include_directories(${OPENSSL_INCLUDE_DIR})
20 add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED)
21
22 add_vpp_plugin(ikev2
23   SOURCES
24   ikev2.c
25   ikev2_api.c
26   ikev2_cli.c
27   ikev2_crypto.c
28   ikev2_format.c
29   ikev2_payload.c
30
31   API_FILES
32   ikev2_types.api
33   ikev2.api
34
35   API_TEST_SOURCES
36   ikev2_test.c
37
38   INSTALL_HEADERS
39   ikev2.h
40   ikev2_priv.h
41
42   LINK_LIBRARIES
43   ${OPENSSL_CRYPTO_LIBRARIES}
44 )