-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
49 lines (40 loc) · 1.16 KB
/
meson.build
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
project('Ouroboros', 'cpp', version: '0.1.0')
include = include_directories('include/')
omp=dependency('openmp')
cblas=dependency('cblas')
add_project_arguments('-std=c++2a', language: ['cpp','c'])
subdir('src')
install_headers(
[
'include/func.hpp',
'include/macros.hpp',
'include/op.hpp',
'include/ouroboros.hpp',
'include/private_impl.hpp',
'include/shape.hpp',
'include/tensor.hpp',
'include/utils.hpp',
],
subdir : 'ouroboros')
ouroboros=static_library(
'ouroboros',
include_directories:include,
sources:tensor_src+op_src+utils_src,
dependencies:[omp,cblas],
install:true
)
pkg = import('pkgconfig')
headers = ['.'] # subdirectories of ${prefix}/${includedir} to add to header path
pkg.generate(libraries : ouroboros,
subdirs : headers,
version : '0.1.0',
name : 'Ouroboros',
filebase : 'ouroboros',
description : 'A simple c++ tensor library')
executable(
'test_tensor.elf',
sources: ['test_tensor.cpp'],
dependencies:[omp,cblas],
include_directories:include,
link_with: [ouroboros]
)