-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
74 lines (57 loc) · 1.19 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 3.24)
project(tatami_gallery
VERSION 0.1.0
DESCRIPTION "Examples of tatami use cases"
LANGUAGES CXX)
include(FetchContent)
FetchContent_Declare(
tatami
GIT_REPOSITORY https://github.com/tatami-inc/tatami
GIT_TAG master # ^0.3.0
)
FetchContent_MakeAvailable(tatami)
#########################################
# Building the char2double demonstration.
add_executable(
char2double
src/char2double.cpp
)
target_link_libraries(
char2double
tatami
)
#########################################
# Building the colsums demonstration.
add_executable(
colsums
src/colsums.cpp
)
target_link_libraries(
colsums
tatami
)
#########################################
# Building the OpenMP demonstration.
add_executable(
parallel
src/parallel.cpp
)
find_package(OpenMP)
if(OpenMP_CXX_FOUND)
target_link_libraries(parallel PUBLIC OpenMP::OpenMP_CXX)
endif()
target_link_libraries(
parallel
PUBLIC
tatami
)
#########################################
# Checking sparse workspace performance.
add_executable(
sparse_extractor
src/sparse_extractor.cpp
)
target_link_libraries(
sparse_extractor
tatami
)