cmake_minimum_required( VERSION 3.15 )

set( blaspp_use_openmp "@blaspp_use_openmp@" )
set( blaspp_use_cuda   "@blaspp_use_cuda@" )
set( blaspp_use_hip    "@blaspp_use_hip@" )
set( blaspp_use_sycl   "@blaspp_use_sycl@" )

include( CMakeFindDependencyMacro )
if (blaspp_use_openmp)
    find_dependency( OpenMP )
endif()

if (blaspp_use_cuda)
    find_dependency( CUDAToolkit )
endif()

if (blaspp_use_hip)
    find_dependency( rocblas )
endif()

# Export private variables used in LAPACK++.
set( blaspp_defines         "@blaspp_defines@" )
set( blaspp_libraries       "@blaspp_libraries@" )

set( blaspp_cblas_found     "@blaspp_cblas_found@" )
set( blaspp_cblas_include   "@blaspp_cblas_include@" )
set( blaspp_cblas_libraries "@blaspp_cblas_libraries@" )

include( "${CMAKE_CURRENT_LIST_DIR}/blasppTargets.cmake" )
