forked from kylekrol/lin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
122 lines (110 loc) · 2.72 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
cmake_minimum_required(VERSION 3.9)
set(PROJECT_NAME lin)
project(${PROJECT_NAME} CXX)
set(CMAKE_CXX_STANDARD 14)
add_compile_options(-Wall -Werror)
enable_testing()
add_subdirectory(gtest)
add_executable(core_tests
test/core/traits_test.cpp
test/core/types_matrix_test.cpp
test/core/types_vector_test.cpp
test/core/operations_functors_test.cpp
test/core/operations_tensor_operations_test.cpp
test/core/operations_tensor_operators_test.cpp
test/core/operations_vector_operations_test.cpp
)
target_include_directories(core_tests PRIVATE
include
)
target_link_libraries(core_tests PRIVATE
gtest
gtest_main
)
add_test(run_core_tests core_tests)
add_executable(factorizations_tests
test/factorizations/chol_test.cpp
test/factorizations/qr_test.cpp
)
target_include_directories(factorizations_tests PRIVATE
include
)
target_link_libraries(factorizations_tests PRIVATE
gtest
gtest_main
)
add_test(run_factorizations_tests factorizations_tests)
add_executable(generators_tests
test/generators/constants_test.cpp
test/generators/identity_test.cpp
test/generators/randoms_test.cpp
)
target_include_directories(generators_tests PRIVATE
include
)
target_link_libraries(generators_tests PRIVATE
gtest
gtest_main
)
add_test(run_generators_tests generators_tests)
add_executable(math_tests
test/math/math_functors_test.cpp
test/math/math_operations_test.cpp
)
target_include_directories(math_tests PRIVATE
include
)
target_link_libraries(math_tests PRIVATE
gtest
gtest_main
)
add_test(run_math_tests math_tests)
add_executable(queries_tests
test/queries/queries_functors_test.cpp
test/queries/queries_operations_test.cpp
test/queries/queries_operators_test.cpp
)
target_include_directories(queries_tests PRIVATE
include
)
target_link_libraries(queries_tests PRIVATE
gtest
gtest_main
)
add_test(run_queries_tests queries_tests)
add_executable(references_tests
test/references/mapping_reference_test.cpp
test/references/stream_reference_test.cpp
)
target_include_directories(references_tests PRIVATE
include
)
target_link_libraries(references_tests PRIVATE
gtest
gtest_main
)
add_test(run_references_tests references_tests)
add_executable(substitutions_tests
test/substitutions/backward_substitution_test.cpp
test/substitutions/forward_substitution_test.cpp
)
target_include_directories(substitutions_tests PRIVATE
include
)
target_link_libraries(substitutions_tests PRIVATE
gtest
gtest_main
)
add_test(run_substitutions_tests substitutions_tests)
add_executable(views_tests
test/views/matrix_views_test.cpp
test/views/vector_views_test.cpp
)
target_include_directories(views_tests PRIVATE
include
)
target_link_libraries(views_tests PRIVATE
gtest
gtest_main
)
add_test(run_views_tests views_tests)