blob: 74eff8c984585d20fa34036bd8d11ff21c44994d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
include (CheckFunctionExists)
message(STATUS "Looking for picotls")
find_path (PICOTLS_INCLUDE_DIR NAMES picotls.h)
find_library (PICOTLS_CORE_LIBRARY NAMES "libpicotls-core.a")
find_library (PICOTLS_OPENSSL_LIBRARY NAMES "libpicotls-openssl.a")
list (APPEND PICOTLS_LINK_LIBRARIES
${PICOTLS_CORE_LIBRARY}
${PICOTLS_OPENSSL_LIBRARY}
)
if (PICOTLS_INCLUDE_DIR AND PICOTLS_LINK_LIBRARIES)
include_directories (${PICOTLS_INCLUDE_DIR})
add_vpp_plugin(tlspicotls
SOURCES
tls_picotls.c
pico_vpp_crypto.c
certs.c
LINK_LIBRARIES ${PICOTLS_LINK_LIBRARIES}
)
message (STATUS "Found picotls in ${PICOTLS_INCLUDE_DIR} and ${PICOTLS_CORE_LIBRARY}")
else ()
message (WARNING "-- picotls not found")
endif ()
|