mirror of
https://github.com/luxfi/gpu.git
synced 2026-10-30 16:23:49 +00:00
- LuxLibrary.cmake: shared helper for standard install layout - lux-gpu.pc.in: pkg-config template for CGO bindings - lux-gpuConfig.cmake.in: CMake package config template - Provides lux::gpu target alias
25 lines
632 B
CMake
25 lines
632 B
CMake
@PACKAGE_INIT@
|
|
|
|
# lux-gpu CMake Config
|
|
# Provides GPU acceleration foundation for Lux crypto stack
|
|
#
|
|
# Usage:
|
|
# find_package(lux-gpu CONFIG REQUIRED)
|
|
# target_link_libraries(app PRIVATE lux::gpu)
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
# Find Metal framework on macOS
|
|
if(APPLE)
|
|
find_library(METAL_FRAMEWORK Metal)
|
|
find_library(FOUNDATION_FRAMEWORK Foundation)
|
|
find_library(METALPS_FRAMEWORK MetalPerformanceShaders)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/lux-gpuTargets.cmake")
|
|
|
|
# Provide resource directory for metallib
|
|
set(LUX_GPU_RESOURCE_DIR "${PACKAGE_PREFIX_DIR}/share/lux/gpu")
|
|
|
|
check_required_components(lux-gpu)
|