aboutsummaryrefslogtreecommitdiff
path: root/FindLibreSSL.cmake (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added CMake hint when searching for LibreSSL directory on macOSCole Blakley2024-11-291-0/+5
|
* Include FindPackageHandleStandardArgs before use.Michael John2019-12-191-0/+2
| | | The function 'FindPackageHandleStandardArgs' needs to be included before used.
* Add LibreSSL CMake Find ModuleJohn Norrbin2019-02-111-0/+225
CMake has the find_package function which tries to find the library install paths, and if found, gives the user some "interfaces" to use when including the library in their project. There was no LibreSSL module so i wrote one 👍. Placing this file in a new folder called CMake in the same folder as the root CMakeLists.txt file, and adding the following line to the top of it: set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}") Lets the user run the find_package like so: find_package(LibreSSL REQUIRED) If LibreSSL is installed and found, the user can then just include the library in their target like so: target_link_libraries(test LibreSSL::TLS) They are cascaded, TLS requires and sets SSL, which also requires and sets Crypto using INTERFACE_LINK_LIBRARIES. Instead of setting the CMAKE_MODULE_PATH like above, the file can be placed in the CMake modules folder. For linux CMake will look for LibreSSL in the default install location of "sudo make install", which was on Ubuntu /usr/local/ For Windows the user can set the paths to their library files and include folder manually using the CMake-GUI.