-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
32 lines (29 loc) · 1.07 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
set(QLRISKS_TEST_SOURCES
americanoption_xad.cpp
barrieroption_xad.cpp
batesmodel_xad.cpp
bermudanswaption_xad.cpp
bonds_xad.cpp
creditdefaultswap_xad.cpp
europeanoption_xad.cpp
forwardrateagreement_xad.cpp
hestonmodel_xad.cpp
swap_xad.cpp
utilities_xad.cpp
quantlibtestsuite_xad.cpp
)
set(QLRISKS_TEST_HEADERS utilities_xad.hpp)
if(QL_BUILD_TEST_SUITE)
add_executable(QuantLib-Risks_test_suite ${QLRISKS_TEST_SOURCES} ${QLRISKS_TEST_HEADERS})
set_target_properties(QuantLib-Risks_test_suite PROPERTIES OUTPUT_NAME "quantlib-risks-test-suite")
if (NOT Boost_USE_STATIC_LIBS)
target_compile_definitions(QuantLib-Risks_test_suite PRIVATE BOOST_ALL_DYN_LINK)
endif()
target_link_libraries(QuantLib-Risks_test_suite PRIVATE
ql_library
${QL_THREAD_LIBRARIES})
if (QL_INSTALL_TEST_SUITE)
install(TARGETS QuantLib-Risks_test_suite RUNTIME DESTINATION ${QL_INSTALL_BINDIR})
endif()
add_test(NAME QuantLib-Risks_test_suite COMMAND QuantLib-Risks_test_suite --log_level=message)
endif()