mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 20:10:49 +02:00
540b51eb28
* Minor fixes to the CMakeLists.txt * Add more options to the CMake infrastructure already present in the autoconf infrastructure * An autoconf build now also generates and installs files required to consume the installed wolfssl library via CMake. * Added test for autoconf-CMake interworking Work is mostly done by Codex and Curser.
28 lines
837 B
CMake
28 lines
837 B
CMake
# Generated by autoconf; do not edit.
|
|
|
|
if (NOT TARGET wolfssl::wolfssl)
|
|
add_library(wolfssl::wolfssl UNKNOWN IMPORTED)
|
|
|
|
set(_wolfssl_libdir "@WOLFSSL_LIBDIR_ABS@")
|
|
set(_wolfssl_includedir "@WOLFSSL_INCLUDEDIR_ABS@")
|
|
|
|
find_library(WOLFSSL_LIBRARY NAMES wolfssl PATHS "${_wolfssl_libdir}" NO_DEFAULT_PATH)
|
|
if (NOT WOLFSSL_LIBRARY)
|
|
find_library(WOLFSSL_LIBRARY NAMES wolfssl)
|
|
endif()
|
|
if (NOT WOLFSSL_LIBRARY)
|
|
message(FATAL_ERROR "wolfssl library not found. Looked in: ${_wolfssl_libdir}")
|
|
endif()
|
|
|
|
set_target_properties(wolfssl::wolfssl PROPERTIES
|
|
IMPORTED_LOCATION "${WOLFSSL_LIBRARY}"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${_wolfssl_includedir}"
|
|
)
|
|
|
|
if (@WOLFSSL_HAVE_PTHREAD@)
|
|
set_property(TARGET wolfssl::wolfssl APPEND PROPERTY
|
|
INTERFACE_LINK_LIBRARIES Threads::Threads
|
|
)
|
|
endif()
|
|
endif()
|