CMakeLists.txt 604 B

12345678910111213141516171819
  1. # -*- coding: utf-8; mode: cmake -*-
  2. # (c) Daniel Llorens - 2018
  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)
  8. include ("../config/cc.cmake")
  9. find_package (CBLAS)
  10. if (CBLAS_FOUND)
  11. target_compile_definitions (bench-gemm PRIVATE "-DRA_USE_BLAS=1")
  12. target_include_directories (bench-gemm PRIVATE ${CBLAS_INCLUDE_DIRS})
  13. target_link_libraries (bench-gemm ${CBLAS_LIBRARIES})
  14. endif ()