Files
Library/cmake/VoidConfig.cmake.in
T
faumaray 8583a479dd
CI / GCC 16 / C++26 / default (push) Has been cancelled
CI / GCC 16 / C++26 / sanitizers (push) Has been cancelled
CI / GCC 16 / C++26 / werror (push) Has been cancelled
Update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-15 19:49:06 +03:00

31 lines
1.0 KiB
CMake

@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
set(_void_external_deps "@VOID_EXTERNAL_DEPS_LIST@")
foreach(dep IN LISTS _void_external_deps)
if(dep STREQUAL "Boost")
find_dependency(Boost REQUIRED COMPONENTS stacktrace_backtrace url)
elseif(dep STREQUAL "Sodium")
find_dependency(PkgConfig REQUIRED)
pkg_check_modules(SODIUM REQUIRED IMPORTED_TARGET libsodium)
if(NOT TARGET Sodium::Sodium)
add_library(Sodium::Sodium INTERFACE IMPORTED)
set_property(TARGET Sodium::Sodium PROPERTY
INTERFACE_LINK_LIBRARIES PkgConfig::SODIUM)
endif()
elseif(NOT TARGET ${dep})
find_dependency(${dep})
endif()
endforeach()
include("${CMAKE_CURRENT_LIST_DIR}/@EXPORT_SET_NAME@.cmake")
# Auto-load the testing helper so consumers get void_add_tests + the
# auto-scan sweep just by find_package(Void).
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/VoidTesting.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/VoidTesting.cmake")
endif()
check_required_components("@PROJECT_NAME@")