]> www.ginac.de Git - ginac.git/blob - check/CMakeLists.txt
bugfix: function: always pass evalf'ed arguments to evalf_funcp
[ginac.git] / check / CMakeLists.txt
1
2 set(ginac_exams
3         exam_paranoia
4         exam_heur_gcd
5         exam_match
6         exam_parser
7         exam_numeric
8         exam_powerlaws
9         exam_inifcns
10         exam_inifcns_nstdsums
11         exam_inifcns_elliptic
12         exam_differentiation
13         exam_polygcd
14         exam_collect_common_factors
15         exam_normalization
16         exam_sqrfree
17         exam_factor
18         exam_pseries
19         exam_matrices
20         exam_lsolve
21         exam_indexed
22         exam_color
23         exam_clifford
24         exam_archive
25         exam_structure
26         exam_misc
27         exam_pgcd
28         exam_mod_gcd
29         exam_real_imag
30         exam_chinrem_gcd
31         exam_function_exvector
32 )
33
34 set(ginac_checks
35         check_numeric
36         check_inifcns
37         check_matrices
38         check_lsolve
39         check_cra)
40
41 set(ginac_timings
42         time_dennyfliegner
43         time_gammaseries
44         time_vandermonde
45         time_toeplitz
46         time_lw_A
47         time_lw_B
48         time_lw_C
49         time_lw_D
50         time_lw_E
51         time_lw_F
52         time_lw_G
53         time_lw_H
54         time_lw_IJKL
55         time_lw_M1
56         time_lw_M2
57         time_lw_N
58         time_lw_O
59         time_lw_P
60         time_lw_Pprime
61         time_lw_Q
62         time_lw_Qprime
63         time_antipode
64         time_fateman_expand
65         time_uvar_gcd
66         time_parser)
67
68 macro(add_ginac_test thename)
69         if ("${${thename}_sources}" STREQUAL "")
70                 set(${thename}_sources ${thename}.cpp ${${thename}_extra_src})
71         endif()
72         add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources})
73         target_link_libraries(${thename} ginac::ginac)
74         add_dependencies(test_suite ${thename})
75         add_dependencies(check ${thename})
76         add_test(NAME ${thename} COMMAND $<TARGET_FILE:${thename}>)
77 endmacro()
78
79 macro(add_ginac_timing thename)
80         set(${thename}_extra_src timer.cpp randomize_serials.cpp)
81         add_ginac_test(${thename})
82         target_compile_definitions(${thename} PRIVATE HAVE_CONFIG_H)
83 endmacro()
84
85 set(check_matrices_extra_src genex.cpp)
86 set(check_lsolve_extra_src genex.cpp)
87
88 foreach(exm ${ginac_exams})
89         add_ginac_test(${exm})
90 endforeach()
91
92 foreach(chk ${ginac_checks})
93         add_ginac_test(${chk})
94 endforeach()
95
96 foreach(tmr ${ginac_timings})
97         add_ginac_timing(${tmr})
98 endforeach()
99