diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2020-08-24 15:22:59 +0200 |
---|---|---|
committer | Jannis Voelker <jannis.voelker@basyskom.com> | 2020-09-08 16:11:24 +0200 |
commit | 326441ae71afd215f7471222f0ea82568d87ff1a (patch) | |
tree | 4a1020e2f59dc0990b18cc002c48b3e8dd9adb47 /cmake | |
parent | 9c06176f1af0db839de59c89b4332c230fd0be94 (diff) |
CMake: Port the open62541 plugin to OpenSSL
Open62541 v1.1 has been extended with an OpenSSL based security plugin.
This change removes the mbedTLS dependency for the CMake build of the
open62541 plugin and uses FindWrapOpenSSL.cmake to detect security support.
The bundled open62541 amalgamation build contains the changes from
https://github.com/open62541/open62541/pull/3876
[ChangeLog][open62541 plugin] Security support now uses OpenSSL instead of mbedTLS
Change-Id: I29a15c08a67593219a6c637116f84d27c0702db5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindMbedtls.cmake | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/cmake/FindMbedtls.cmake b/cmake/FindMbedtls.cmake deleted file mode 100644 index 9e29ea1..0000000 --- a/cmake/FindMbedtls.cmake +++ /dev/null @@ -1,67 +0,0 @@ -#.rst: -# FindMbedtls -# --------- -# -# Try to locate the mbedTLS library. -# If found, this will define the following variables: -# -# ``Mbedtls_FOUND`` -# True if the mbedtls library is available -# ``Mbedtls_INCLUDE_DIRS`` -# The mbedTLS include directories -# ``Mbedx509_LIBRARIES`` -# The mbedx509 library for linking -# ``Mbedcrypto_LIBRARIES`` -# The mbedcrypto library for linking -# -# If ``Mbedtls_FOUND`` is TRUE, it will also define the following -# imported targets: -# -# ``mbedx509`` -# The mbedx509 library -# ``mbedcrypto`` -# The mbedcrypto library -# ``mbedtls`` -# An interface library combining mbedx509 and mbedcrypto - - -find_path(Mbedtls_INCLUDE_DIRS - NAMES mbedtls/x509_crt.h - HINTS ${MBEDTLS_INCDIR}) - -find_library(Mbedx509_LIBRARIES - NAMES mbedx509 - HINTS ${MBEDTLS_LIBDIR}) - -find_library(Mbedcrypto_LIBRARIES - NAMES mbedcrypto - HINTS ${MBEDTLS_LIBDIR}) - -if (NOT Mbedtls_INCLUDE_DIRS STREQUAL "Mbedtls_INCLUDE_DIRS-NOTFOUND" - AND NOT Mbedx509_LIBRARIES STREQUAL "Mbedx09_LIBRARIES-NOTFOUND" - AND NOT Mbedcrypto_LIBRARIES STREQUAL "Mbedcrypto_LIBRARIES-NOTFOUND") - set(Mbedtls_FOUND ON) -endif() - -if (Mbedtls_FOUND) - add_library(mbedx509 UNKNOWN IMPORTED) - set_target_properties(mbedx509 PROPERTIES - IMPORTED_LOCATION "${Mbedx509_LIBRARIES}" - INTERFACE_INCLUDE_DIRECTORIES "${Mbedtls_INCLUDE_DIRS}") - - add_library(mbedcrypto UNKNOWN IMPORTED) - set_target_properties(mbedcrypto PROPERTIES - IMPORTED_LOCATION "${Mbedcrypto_LIBRARIES}" - INTERFACE_INCLUDE_DIRECTORIES "${Mbedtls_INCLUDE_DIRS}") - - add_library(mbedtls INTERFACE IMPORTED) - set_property(TARGET mbedtls PROPERTY - INTERFACE_LINK_LIBRARIES mbedx509 mbedcrypto) -endif() - -mark_as_advanced(Mbedtls_INCLUDE_DIRS Mbedx509_LIBRARIES Mbedcrypto_LIBRARIES) - -include(FeatureSummary) -set_package_properties(Mbedtls PROPERTIES - URL "https://tls.mbed.org/" - DESCRIPTION "The mbedTLS library") |