Debian Codegraph @

cmake/dpp-config.cmake

raw
1 # dpp-config.cmake - package configuration file
2
3 ## Get current filesystem path (will a prefixed by where this package was installed)
4 get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
5
6 ## Use this directory to include dpp which has the rest of the project targets
7 include(${SELF_DIR}/dpp.cmake)
8
9 ## Set OpenSSl directory for macos. It is also in our main CMakeLists.txt, but this file is independent from that.
10 if(APPLE)
11 if(CMAKE_APPLE_SILICON_PROCESSOR)
12 set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl")
13 else()
14 set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
15 endif()
16 find_package(OpenSSL REQUIRED)
17 endif()
18
19 # Search for libdpp dependencies
20 include(CMakeFindDependencyMacro)
21 find_dependency(OpenSSL REQUIRED)