You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cblas-config-install.cmake.in 853 B

1234567891011121314151617181920212223
  1. # Compute locations from <prefix>/@{LIBRARY_DIR@/cmake/lapacke-<v>/<self>.cmake
  2. get_filename_component(_CBLAS_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  3. get_filename_component(_CBLAS_PREFIX "${_CBLAS_SELF_DIR}" PATH)
  4. get_filename_component(_CBLAS_PREFIX "${_CBLAS_PREFIX}" PATH)
  5. get_filename_component(_CBLAS_PREFIX "${_CBLAS_PREFIX}" PATH)
  6. # Load the LAPACK package with which we were built.
  7. set(LAPACK_DIR "${_CBLAS_PREFIX}/@CMAKE_INSTALL_LIBDIR@/cmake/@LAPACKLIB@-@LAPACK_VERSION@")
  8. find_package(LAPACK NO_MODULE)
  9. # Load lapacke targets from the install tree.
  10. if(NOT TARGET @CBLASLIB@)
  11. include(${_CBLAS_SELF_DIR}/@CBLASLIB@-targets.cmake)
  12. endif()
  13. # Report lapacke header search locations.
  14. set(CBLAS_INCLUDE_DIRS ${_CBLAS_PREFIX}/include)
  15. # Report lapacke libraries.
  16. set(CBLAS_LIBRARIES @CBLASLIB@)
  17. unset(_CBLAS_PREFIX)
  18. unset(_CBLAS_SELF_DIR)