CMakeLists.txt 935 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8; mode: cmake -*-
  2. # Cmake file for ra/bench
  3. # (c) Daniel Llorens - 2018-2024
  4. # This library is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU Lesser General Public License as published by the Free
  6. # Software Foundation; either version 3 of the License, or (at your option) any
  7. # later version.
  8. cmake_minimum_required (VERSION 3.5)
  9. project (ra-bench)
  10. include_directories ("..")
  11. SET (TARGETS bench-dot bench-from bench-gemm bench-gemv bench-optimize bench-pack bench-reduce-sqrm
  12. bench-stencil1 bench-stencil2 bench-stencil3 bench-sum-cols bench-sum-rows bench-tensorindex
  13. bench-at bench-iterator)
  14. include ("../config/cc.cmake")
  15. find_package (CBLAS)
  16. if (CBLAS_FOUND)
  17. target_compile_definitions (bench-gemm PRIVATE "-DRA_USE_BLAS=1")
  18. target_include_directories (bench-gemm PRIVATE ${CBLAS_INCLUDE_DIRS})
  19. target_link_libraries (bench-gemm ${CBLAS_LIBRARIES})
  20. endif ()