forked from lballabio/QuantLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
216 lines (207 loc) · 5.34 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
set(QL_TEST_SOURCES
americanoption.cpp
amortizingbond.cpp
andreasenhugevolatilityinterpl.cpp
array.cpp
asianoptions.cpp
assetswap.cpp
autocovariances.cpp
barrieroption.cpp
basismodels.cpp
basisswapratehelpers.cpp
basketoption.cpp
batesmodel.cpp
bermudanswaption.cpp
binaryoption.cpp
blackdeltacalculator.cpp
blackformula.cpp
bondforward.cpp
bonds.cpp
brownianbridge.cpp
businessdayconventions.cpp
calendars.cpp
callablebonds.cpp
capfloor.cpp
capflooredcoupon.cpp
cashflows.cpp
catbonds.cpp
cdo.cpp
cdsoption.cpp
chooseroption.cpp
cliquetoption.cpp
cms.cpp
cms_normal.cpp
cmsspread.cpp
commodityunitofmeasure.cpp
compiledboostversion.cpp
compoundoption.cpp
convertiblebonds.cpp
covariance.cpp
creditdefaultswap.cpp
creditriskplus.cpp
crosscurrencyratehelpers.cpp
currency.cpp
curvestates.cpp
dates.cpp
daycounters.cpp
defaultprobabilitycurves.cpp
digitalcoupon.cpp
digitaloption.cpp
distributions.cpp
dividendoption.cpp
doublebarrieroption.cpp
doublebinaryoption.cpp
equitycashflow.cpp
equityindex.cpp
equitytotalreturnswap.cpp
europeanoption.cpp
everestoption.cpp
exchangerate.cpp
extendedtrees.cpp
extensibleoptions.cpp
fastfouriertransform.cpp
fdcev.cpp
fdheston.cpp
fdcir.cpp
fdmlinearop.cpp
fdsabr.cpp
fittedbonddiscountcurve.cpp
forwardoption.cpp
forwardrateagreement.cpp
functions.cpp
garch.cpp
gaussianquadratures.cpp
gjrgarchmodel.cpp
gsr.cpp
hestonmodel.cpp
hestonslvmodel.cpp
himalayaoption.cpp
hybridhestonhullwhiteprocess.cpp
indexes.cpp
inflation.cpp
inflationcapfloor.cpp
inflationcapflooredcoupon.cpp
inflationcpibond.cpp
inflationcpicapfloor.cpp
inflationcpiswap.cpp
inflationvolatility.cpp
instruments.cpp
integrals.cpp
interestrates.cpp
interpolations.cpp
jumpdiffusion.cpp
lazyobject.cpp
libormarketmodel.cpp
libormarketmodelprocess.cpp
linearleastsquaresregression.cpp
lookbackoptions.cpp
lowdiscrepancysequences.cpp
margrabeoption.cpp
marketmodel.cpp
marketmodel_cms.cpp
marketmodel_smm.cpp
marketmodel_smmcapletalphacalibration.cpp
marketmodel_smmcapletcalibration.cpp
marketmodel_smmcaplethomocalibration.cpp
markovfunctional.cpp
matrices.cpp
mclongstaffschwartzengine.cpp
mersennetwister.cpp
money.cpp
multipleresetscoupons.cpp
noarbsabr.cpp
normalclvmodel.cpp
nthorderderivativeop.cpp
nthtodefault.cpp
numericaldifferentiation.cpp
observable.cpp
ode.cpp
operators.cpp
optimizers.cpp
optionletstripper.cpp
overnightindexedcoupon.cpp
overnightindexedswap.cpp
pagodaoption.cpp
partialtimebarrieroption.cpp
pathgenerator.cpp
period.cpp
piecewiseyieldcurve.cpp
piecewisezerospreadedtermstructure.cpp
preconditions.cpp
prices.cpp
quantlibglobalfixture.cpp
quantooption.cpp
quotes.cpp
rangeaccrual.cpp
riskneutraldensitycalculator.cpp
riskstats.cpp
rngtraits.cpp
rounding.cpp
schedule.cpp
settings.cpp
shortratemodels.cpp
sofrfutures.cpp
solvers.cpp
spreadoption.cpp
squarerootclvmodel.cpp
stats.cpp
svivolatility.cpp
swap.cpp
swapforwardmappings.cpp
swaption.cpp
swaptionvolatilitycube.cpp
swaptionvolatilitymatrix.cpp
swingoption.cpp
termstructures.cpp
timegrid.cpp
timeseries.cpp
tqreigendecomposition.cpp
tracing.cpp
transformedgrid.cpp
twoassetbarrieroption.cpp
twoassetcorrelationoption.cpp
ultimateforwardtermstructure.cpp
utilities.cpp
variancegamma.cpp
varianceoption.cpp
varianceswaps.cpp
volatilitymodels.cpp
vpp.cpp
xoshiro256starstar.cpp
zabr.cpp
zerocouponswap.cpp
zigguratgaussian.cpp
)
set(QL_TEST_HEADERS
paralleltestrunner.hpp
preconditions.hpp
quantlibglobalfixture.hpp
swaptionvolstructuresutilities.hpp
toplevelfixture.hpp
utilities.hpp
)
if (QL_BUILD_TEST_SUITE)
add_library(ql_test OBJECT ${QL_TEST_SOURCES} ${QL_TEST_HEADERS})
if (NOT Boost_USE_STATIC_LIBS)
target_compile_definitions(ql_test PUBLIC BOOST_ALL_DYN_LINK)
endif()
if(MSVC AND CMAKE_UNITY_BUILD)
# for Unity builds, we need to add /bigobj
target_compile_options(ql_test PUBLIC "/bigobj")
endif()
target_link_libraries(ql_test PUBLIC ql_library ${QL_THREAD_LIBRARIES})
add_executable(ql_test_suite quantlibtestsuite.cpp)
set_source_files_properties(quantlibtestsuite.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION true)
set_target_properties(ql_test_suite PROPERTIES OUTPUT_NAME "quantlib-test-suite")
target_link_libraries(ql_test_suite PRIVATE ql_test)
if (QL_INSTALL_TEST_SUITE)
install(TARGETS ql_test_suite RUNTIME DESTINATION ${QL_INSTALL_BINDIR})
endif()
add_test(NAME quantlib_test_suite COMMAND ql_test_suite --log_level=message)
add_executable(ql_benchmark quantlibbenchmark.cpp)
set_target_properties(ql_benchmark PROPERTIES OUTPUT_NAME "quantlib-benchmark")
target_link_libraries(ql_benchmark PRIVATE ql_test)
if (QL_INSTALL_BENCHMARK)
install(TARGETS ql_benchmark RUNTIME DESTINATION ${QL_INSTALL_BINDIR})
endif()
endif()