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