summaryrefslogtreecommitdiffstats
path: root/src/plugins/tlspicotls/CMakeLists.txt
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-10-14 19:41:51 +0800
committerFlorin Coras <florin.coras@gmail.com>2019-11-10 18:44:44 +0000
commitf83194c2f45bcc736edc8246b510a29c1df15756 (patch)
tree15ce3276d4cf42ec2e2c990d273078d191775bfd /src/plugins/tlspicotls/CMakeLists.txt
parentaa43914df656bbd7340b8dbd68f23f8fe0aabfd5 (diff)
tls: picotls engine basic enabling for TLS
Type: feature Change-Id: I700d999771d837604dd0571741f4f0bcbec82403 Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Diffstat (limited to 'src/plugins/tlspicotls/CMakeLists.txt')
-rw-r--r--src/plugins/tlspicotls/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/tlspicotls/CMakeLists.txt b/src/plugins/tlspicotls/CMakeLists.txt
new file mode 100644
index 00000000000..ba01278acad
--- /dev/null
+++ b/src/plugins/tlspicotls/CMakeLists.txt
@@ -0,0 +1,27 @@
+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
+ 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 ()