aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Norrbin <Johnex@users.noreply.github.com>2019-02-11 20:30:17 +0100
committerGitHub <noreply@github.com>2019-02-11 20:30:17 +0100
commit1dd2d050e106453eb887785c16fa82a1cff7efca (patch)
treec4da2ce66b25b770e6d2365e1b0ddba11205604a /include
parent535246269d4a7d8338320f8e6666ca887718c5d0 (diff)
downloadportable-1dd2d050e106453eb887785c16fa82a1cff7efca.tar.gz
portable-1dd2d050e106453eb887785c16fa82a1cff7efca.tar.bz2
portable-1dd2d050e106453eb887785c16fa82a1cff7efca.zip
Add LibreSSL CMake Find Module
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.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions