

####################################################################################
# Auto generated @PACKAGE_INIT@ by rocm_configure_package_config_file()
# from rocalution-config.cmake.in
# Any changes to this file will be overwritten by the next CMake run
####################################################################################

get_filename_component(_ROCM_CMAKE_CURRENT_LIST_FILE_REAL "${CMAKE_CURRENT_LIST_FILE}" REALPATH)
get_filename_component(_ROCM_CMAKE_CURRENT_LIST_DIR_REAL "${_ROCM_CMAKE_CURRENT_LIST_FILE_REAL}" DIRECTORY)
get_filename_component(PACKAGE_PREFIX_DIR "${_ROCM_CMAKE_CURRENT_LIST_DIR_REAL}/../../../" ABSOLUTE)



macro(set_and_check _var _file)
    set(${_var} "${_file}")
    if(NOT EXISTS "${_file}")
        message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
    endif()
endmacro()

include(CMakeFindDependencyMacro OPTIONAL RESULT_VARIABLE _ROCMCMakeFindDependencyMacro_FOUND)
if (NOT _ROCMCMakeFindDependencyMacro_FOUND)
    macro(find_dependency dep)
        if (NOT ${dep}_FOUND)
            set(rocm_fd_version)
            if (${ARGC} GREATER 1)
                set(rocm_fd_version ${ARGV1})
            endif()
            set(rocm_fd_exact_arg)
            if(${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_EXACT)
                set(rocm_fd_exact_arg EXACT)
            endif()
            set(rocm_fd_quiet_arg)
            if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
                set(rocm_fd_quiet_arg QUIET)
            endif()
            set(rocm_fd_required_arg)
            if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
                set(rocm_fd_required_arg REQUIRED)
            endif()
            find_package(${dep} ${rocm_fd_version}
                ${rocm_fd_exact_arg}
                ${rocm_fd_quiet_arg}
                ${rocm_fd_required_arg}
            )
            string(TOUPPER ${dep} cmake_dep_upper)
            if (NOT ${dep}_FOUND AND NOT ${cmake_dep_upper}_FOUND)
                set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE
                    "${CMAKE_FIND_PACKAGE_NAME} could not be found because dependency ${dep} could not be found.")
                set(${CMAKE_FIND_PACKAGE_NAME}_FOUND False)
                return()
            endif()
            set(rocm_fd_version)
            set(rocm_fd_required_arg)
            set(rocm_fd_quiet_arg)
            set(rocm_fd_exact_arg)
        endif()
    endmacro()
endif()

macro(check_required_components _NAME)
    foreach(comp ${${_NAME}_FIND_COMPONENTS})
        if(NOT ${_NAME}_${comp}_FOUND)
            if(${_NAME}_FIND_REQUIRED_${comp})
                set(${_NAME}_FOUND FALSE)
            endif()
        endif()
    endforeach()
endmacro()

####################################################################################

    
    
set_and_check(rocalution_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include)

set_and_check(rocalution_INCLUDE_DIRS ${PACKAGE_PREFIX_DIR}/include)

set_and_check(ROCALUTION_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include)

set_and_check(ROCALUTION_INCLUDE_DIRS ${PACKAGE_PREFIX_DIR}/include)

set_and_check(rocalution_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include)

set_and_check(rocalution_INCLUDE_DIRS ${PACKAGE_PREFIX_DIR}/include)

set_and_check(rocalution_TARGET_FILE ${PACKAGE_PREFIX_DIR}/lib/cmake/rocalution/rocalution-targets.cmake)

find_dependency(OpenMP)

find_dependency(HIP)

include(${rocalution_TARGET_FILE})

set(rocalution_LIBRARIES roc::rocalution)

set(rocalution_LIBRARY roc::rocalution)

set(ROCALUTION_LIBRARIES roc::rocalution)

set(ROCALUTION_LIBRARY roc::rocalution)

set(rocalution_LIBRARIES roc::rocalution)

set(rocalution_LIBRARY roc::rocalution)
