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