diff options
author | Cara Salter <cara@devcara.com> | 2023-03-30 12:52:19 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-03-30 12:52:19 -0400 |
commit | 527b7ab2df126bb2f480999049ed05b057a6ef83 (patch) | |
tree | 8edb7c72d7fae0e7d2c768f5f5dd65c2268c75a0 /cmake | |
parent | c8befe7c95b18869f995c4f2cbc2f4cf9c91924f (diff) | |
download | 142bot-527b7ab2df126bb2f480999049ed05b057a6ef83.tar.gz 142bot-527b7ab2df126bb2f480999049ed05b057a6ef83.zip |
modules!
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/dpp-config.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/dpp-config.cmake b/cmake/dpp-config.cmake new file mode 100644 index 0000000..dedc62e --- /dev/null +++ b/cmake/dpp-config.cmake @@ -0,0 +1,21 @@ +# dpp-config.cmake - package configuration file + +## Get current filesystem path (will a prefixed by where this package was installed) +get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) + +## Use this directory to include dpp which has the rest of the project targets +include(${SELF_DIR}/dpp.cmake) + +## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that. +if(APPLE) + if(CMAKE_APPLE_SILICON_PROCESSOR) + set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl") + else() + set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl") + endif() + find_package(OpenSSL REQUIRED) +endif() + +# Search for libdpp dependencies +include(CMakeFindDependencyMacro) +find_dependency(OpenSSL REQUIRED) |