-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Export and install library targets.
The configs can be consumed by setting LibreSSL_DIR to the build directory, or after installation using CMAKE_PREFIX_PATH/LibreSSL_DIR. For compatibility, the EXPORT_NAME of targets and the LIBRESSL_* variables are set to match the names used in FindLibreSSL.
- Loading branch information
1 parent
5432e22
commit a89cd65
Showing
6 changed files
with
154 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@PACKAGE_INIT@ | ||
|
||
set(LIBRESSL_VERSION @VERSION@) | ||
set_and_check(LIBRESSL_INCLUDE_DIR @PACKAGE_INCLUDE_DIRECTORY@) | ||
|
||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/LibreSSL-Crypto.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/LibreSSL-Crypto.cmake") | ||
set(LIBRESSL_CRYPTO_LIBRARY LibreSSL::Crypto) | ||
endif() | ||
|
||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/LibreSSL-SSL.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/LibreSSL-SSL.cmake") | ||
set(LIBRESSL_SSL_LIBRARY LibreSSL::SSL) | ||
endif() | ||
|
||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/LibreSSL-TLS.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/LibreSSL-TLS.cmake") | ||
set(LIBRESSL_TLS_LIBRARY LibreSSL::TLS) | ||
endif() | ||
|
||
set(LIBRESSL_LIBRARIES | ||
${LIBRESSL_CRYPTO_LIBRARY} | ||
${LIBRESSL_SSL_LIBRARY} | ||
${LIBRESSL_TLS_LIBRARY} | ||
) | ||
|
||
check_required_components( | ||
Crypto | ||
SSL | ||
TLS | ||
) | ||
|
||
set(LIBRESSL_FOUND TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters