1 include (CheckFunctionExists)
3 message(STATUS "Looking for picotls")
6 find_path (PICOTLS_INCLUDE_DIR NAMES picotls.h)
7 find_library (PICOTLS_CORE_LIBRARY NAMES "libpicotls-core.a")
8 find_library (PICOTLS_OPENSSL_LIBRARY NAMES "libpicotls-openssl.a")
10 list (APPEND PICOTLS_LINK_LIBRARIES
11 ${PICOTLS_CORE_LIBRARY}
12 ${PICOTLS_OPENSSL_LIBRARY}
15 if (PICOTLS_INCLUDE_DIR AND PICOTLS_LINK_LIBRARIES)
16 include_directories (${PICOTLS_INCLUDE_DIR})
17 add_vpp_plugin(tlspicotls
23 LINK_LIBRARIES ${PICOTLS_LINK_LIBRARIES}
25 message (STATUS "Found picotls in ${PICOTLS_INCLUDE_DIR} and ${PICOTLS_CORE_LIBRARY}")
27 message (WARNING "-- picotls not found")