forked from grzegorzmazur/yacas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
276 lines (261 loc) · 9.03 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
cmake_minimum_required (VERSION 3.10)
foreach (p CMP0048 CMP0054 CMP0071)
if (POLICY ${p})
cmake_policy(SET ${p} NEW)
endif ()
endforeach ()
option (ENABLE_CYACAS_CONSOLE "build the C++ yacas text console" ON)
option (ENABLE_CYACAS_GUI "build the C++ yacas GUI application" ON)
option (ENABLE_CYACAS_GUI_PRIVATE_CODEMIRROR "use private copy of CodeMirror in yacas GUI application" ON)
option (ENABLE_CYACAS_GUI_PRIVATE_MATHJAX "use private copy of MathJAX in yacas GUI application" ON)
option (ENABLE_CYACAS_KERNEL "build the C++ yacas Jupyter kernel" OFF)
option (ENABLE_CYACAS_UNIT_TESTS "build the C++ yacas engine unit tests" OFF)
option (ENABLE_CYACAS_BENCHMARKS "build the C++ yacas engine benchmarks" OFF)
option (ENABLE_JYACAS "build the Java yacas engine" OFF)
option (ENABLE_DOCS "generate documentation" OFF)
option (ENABLE_CODE_COVERAGE "enable coverage reporting" OFF)
if (ENABLE_CYACAS_CONSOLE OR ENABLE_CYACAS_GUI OR ENABLE_CYACAS_KERNEL)
set (ENABLE_CYACAS ON)
else ()
set (ENABLE_CYACAS OFF)
endif()
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set (LANGUAGES CXX C)
if (ENABLE_JYACAS)
find_package (Java)
include (UseJava)
set (LANGUAGES ${LANGUAGES} Java)
endif ()
project (yacas VERSION 1.9.2 LANGUAGES ${LANGUAGES})
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
include (GNUInstallDirs)
include (CTest)
set (YACAS_SCRIPTS
scripts/array.rep/code.ys
scripts/array.rep/code.ys.def
scripts/assoc.rep/code.ys
scripts/assoc.rep/code.ys.def
scripts/base.rep/math.ys
scripts/base.rep/math.ys.def
scripts/c_form.rep/code.ys
scripts/c_form.rep/code.ys.def
scripts/calendar.rep/code.ys
scripts/calendar.rep/code.ys.def
scripts/complex.rep/code.ys
scripts/complex.rep/code.ys.def
scripts/complex.rep/om.ys
scripts/constants.rep/code.ys
scripts/constants.rep/code.ys.def
scripts/constants.rep/om.ys
scripts/controlflow.rep/code.ys
scripts/controlflow.rep/code.ys.def
scripts/cse.rep/cse.ys
scripts/cse.rep/cse.ys.def
scripts/debug.rep/code.ys
scripts/debug.rep/code.ys.def
scripts/deffunc.rep/code.ys
scripts/deffunc.rep/code.ys.def
scripts/deriv.rep/code.ys
scripts/deriv.rep/code.ys.def
scripts/example.rep/code.ys
scripts/example.rep/code.ys.def
scripts/factors.rep/binaryfactors.ys
scripts/factors.rep/binaryfactors.ys.def
scripts/factors.rep/code.ys
scripts/factors.rep/code.ys.def
scripts/functional.rep/code.ys
scripts/functional.rep/code.ys.def
scripts/functional.rep/om.ys
scripts/graph.rep/code.ys
scripts/graph.rep/code.ys.def
scripts/html.rep/code.ys
scripts/html.rep/code.ys.def
scripts/integrate.rep/code.ys
scripts/integrate.rep/code.ys.def
scripts/integrate.rep/om.ys
scripts/io.rep/code.ys
scripts/io.rep/code.ys.def
scripts/io.rep/defaultprint.ys
scripts/io.rep/defaultprint.ys.def
scripts/io.rep/errors.ys
scripts/io.rep/formula.ys
scripts/io.rep/print.ys
scripts/limit.rep/code.ys
scripts/limit.rep/code.ys.def
scripts/limit.rep/om.ys
scripts/linalg.rep/code.ys
scripts/linalg.rep/code.ys.def
scripts/lists.rep/code.ys
scripts/lists.rep/code.ys.def
scripts/lists.rep/scopestack.ys
scripts/lists.rep/scopestack.ys.def
scripts/localrules.rep/code.ys
scripts/localrules.rep/code.ys.def
scripts/logic.rep/code.ys
scripts/logic.rep/code.ys.def
scripts/logic.rep/om.ys
scripts/multivar.rep/code.ys
scripts/multivar.rep/code.ys.def
scripts/multivar.rep/makemulti.ys
scripts/multivar.rep/sparsenomial.ys
scripts/multivar.rep/sparsetree.ys
scripts/multivar.rep/sparsetree.ys.def
scripts/newly.rep/code.ys
scripts/newly.rep/code.ys.def
scripts/nintegrate.rep/code.ys
scripts/nintegrate.rep/code.ys.def
scripts/numbers.rep/GaussianIntegers.ys
scripts/numbers.rep/GaussianIntegers.ys.def
scripts/numbers.rep/NumberTheory.ys
scripts/numbers.rep/NumberTheory.ys.def
scripts/numbers.rep/code.ys
scripts/numbers.rep/code.ys.def
scripts/numbers.rep/nthroot.ys
scripts/numbers.rep/nthroot.ys.def
scripts/numbers.rep/om.ys
scripts/odesolver.rep/code.ys
scripts/odesolver.rep/code.ys.def
scripts/openmath.rep/code.ys
scripts/openmath.rep/code.ys.def
scripts/orthopoly.rep/code.ys
scripts/orthopoly.rep/code.ys.def
scripts/packages.ys
scripts/padic.rep/code.ys
scripts/padic.rep/code.ys.def
scripts/patterns.rep/code.ys
scripts/patterns.rep/code.ys.def
scripts/physics.rep/quantum/clebsch-gordan.ys
scripts/physics.rep/quantum/clebsch-gordan.ys.def
scripts/plots.rep/backends-2d.ys
scripts/plots.rep/backends-3d.ys
scripts/plots.rep/code.ys
scripts/plots.rep/code.ys.def
scripts/plots.rep/plot2d.ys
scripts/plots.rep/plot2d.ys.def
scripts/plots.rep/plot3d.ys
scripts/plots.rep/plot3d.ys.def
scripts/predicates.rep/code.ys
scripts/predicates.rep/code.ys.def
scripts/probability.rep/code.ys
scripts/probability.rep/code.ys.def
scripts/products.rep/code.ys
scripts/products.rep/code.ys.def
scripts/pslq.rep/code.ys
scripts/pslq.rep/code.ys.def
scripts/r_form.rep/code.ys
scripts/r_form.rep/code.ys.def
scripts/rabinmiller.rep/code.ys
scripts/rabinmiller.rep/code.ys.def
scripts/radsimp.rep/code.ys
scripts/radsimp.rep/code.ys.def
scripts/random.rep/code.ys
scripts/random.rep/code.ys.def
scripts/rational.rep/code.ys
scripts/rational.rep/code.ys.def
scripts/simplify.rep/code.ys
scripts/simplify.rep/code.ys.def
scripts/simplify.rep/factorial.ys
scripts/simplify.rep/factorial.ys.def
scripts/solve.rep/code.ys
scripts/solve.rep/code.ys.def
scripts/specfunc.rep/bernou.ys
scripts/specfunc.rep/bernou.ys.def
scripts/specfunc.rep/bessel.ys
scripts/specfunc.rep/bessel.ys.def
scripts/specfunc.rep/code.ys
scripts/specfunc.rep/code.ys.def
scripts/specfunc.rep/gamma.ys
scripts/specfunc.rep/gamma.ys.def
scripts/specfunc.rep/gammaconst.ys
scripts/specfunc.rep/gammaconst.ys.def
scripts/specfunc.rep/om.ys
scripts/specfunc.rep/zeta.ys
scripts/specfunc.rep/zeta.ys.def
scripts/standard.ys
scripts/standard.ys.def
scripts/statistics.rep/distributions.ys
scripts/statistics.rep/distributions.ys.def
scripts/statistics.rep/hypothesystest.ys
scripts/statistics.rep/hypothesystest.ys.def
scripts/statistics.rep/incompletegamma.ys
scripts/statistics.rep/incompletegamma.ys.def
scripts/statistics.rep/randomtest.ys
scripts/statistics.rep/regression.ys
scripts/statistics.rep/regression.ys.def
scripts/statistics.rep/statistics.ys
scripts/statistics.rep/statistics.ys.def
scripts/stats.rep/code.ys
scripts/stats.rep/code.ys.def
scripts/stdarith.ys
scripts/stdarith.ys.def
scripts/stdfuncs.rep/code.ys
scripts/stdfuncs.rep/code.ys.def
scripts/stdfuncs.rep/elemfuncs.ys
scripts/stdfuncs.rep/elemfuncs.ys.def
scripts/stdfuncs.rep/numerical.ys
scripts/stdfuncs.rep/numerical.ys.def
scripts/stdfuncs.rep/nummethods.ys
scripts/stdfuncs.rep/nummethods.ys.def
scripts/stdfuncs.rep/om.ys
scripts/stdopers.ys
scripts/stubs.rep/code.ys
scripts/stubs.rep/code.ys.def
scripts/stubs.rep/om.ys
scripts/substitute.rep/code.ys
scripts/substitute.rep/code.ys.def
scripts/sums.rep/code.ys
scripts/sums.rep/code.ys.def
scripts/sums.rep/om.ys
scripts/trigsimp.rep/code.ys.def
scripts/univar.rep/Cyclotomic.ys
scripts/univar.rep/Cyclotomic.ys.def
scripts/univar.rep/code.ys
scripts/trigsimp.rep/code.ys.def
scripts/univar.rep/Cyclotomic.ys
scripts/univar.rep/Cyclotomic.ys.def
scripts/univar.rep/code.ys
scripts/sums.rep/taylor.ys
scripts/sums.rep/taylor.ys.def
scripts/sums.rep/taylor3.ys
scripts/sums.rep/taylor3.ys.def
scripts/tensor.rep/code.ys
scripts/tensor.rep/code.ys.def
scripts/testers.rep/code.ys
scripts/testers.rep/code.ys.def
scripts/texform.rep/code.ys
scripts/texform.rep/code.ys.def
scripts/transforms.rep/code.ys
scripts/trigsimp.rep/code.ys.def
scripts/univar.rep/Cyclotomic.ys
scripts/univar.rep/Cyclotomic.ys.def
scripts/univar.rep/code.ys
scripts/transforms.rep/code.ys.def
scripts/trigsimp.rep/code.ys
scripts/trigsimp.rep/code.ys.def
scripts/univar.rep/Cyclotomic.ys
scripts/univar.rep/Cyclotomic.ys.def
scripts/univar.rep/code.ys
scripts/univar.rep/code.ys.def
scripts/univar.rep/sparse.ys
scripts/univar.rep/sparse.ys.def
scripts/univar.rep/sturm.ys
scripts/univar.rep/sturm.ys.def
scripts/yacasinit.ys)
if (ENABLE_CYACAS)
install (DIRECTORY scripts/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/yacas/scripts COMPONENT app)
endif ()
if (ENABLE_DOCS)
add_subdirectory (docs)
add_subdirectory (man)
endif()
if (ENABLE_JYACAS)
add_subdirectory (jyacas)
endif ()
if (ENABLE_CYACAS)
add_subdirectory (cyacas)
endif ()
if (ENABLE_CYACAS OR ENABLE_JYACAS)
add_subdirectory (tests)
endif ()