CMakeLists.txt 653 B

1234567891011121314151617181920
  1. # -*- coding: utf-8; mode: cmake -*-
  2. # (c) Daniel Llorens - 2018-2023
  3. cmake_minimum_required (VERSION 3.5)
  4. project (ra-bench)
  5. include_directories ("..")
  6. SET (TARGETS bench-dot bench-from bench-gemm bench-gemv bench-optimize bench-pack bench-reduce-sqrm
  7. bench-stencil1 bench-stencil2 bench-stencil3 bench-sum-cols bench-sum-rows bench-tensorindex
  8. bench-at bench-iterator)
  9. include ("../config/cc.cmake")
  10. find_package (CBLAS)
  11. if (CBLAS_FOUND)
  12. target_compile_definitions (bench-gemm PRIVATE "-DRA_USE_BLAS=1")
  13. target_include_directories (bench-gemm PRIVATE ${CBLAS_INCLUDE_DIRS})
  14. target_link_libraries (bench-gemm ${CBLAS_LIBRARIES})
  15. endif ()