CMakeLists.txt (ginac-1.7.11.tar.bz2) | : | CMakeLists.txt (ginac-1.8.0.tar.bz2) | ||
---|---|---|---|---|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../ginac) | ||||
add_definitions(-DIN_GINAC) | ||||
set(ginac_tests | set(ginac_exams | |||
check_numeric | ||||
check_inifcns | ||||
check_matrices | ||||
check_lsolve | ||||
heur_gcd_bug | ||||
exam_paranoia | exam_paranoia | |||
exam_heur_gcd | exam_heur_gcd | |||
match_bug | exam_match | |||
parser_bugs | exam_parser | |||
exam_numeric_archive | ||||
exam_numeric | exam_numeric | |||
exam_powerlaws | exam_powerlaws | |||
exam_inifcns | exam_inifcns | |||
exam_inifcns_nstdsums | exam_inifcns_nstdsums | |||
exam_inifcns_elliptic | ||||
exam_differentiation | exam_differentiation | |||
exam_polygcd | exam_polygcd | |||
exam_collect_common_factors | exam_collect_common_factors | |||
exam_normalization | exam_normalization | |||
exam_sqrfree | ||||
exam_factor | exam_factor | |||
exam_pseries | exam_pseries | |||
exam_matrices | exam_matrices | |||
exam_lsolve | exam_lsolve | |||
exam_indexed | exam_indexed | |||
exam_color | exam_color | |||
exam_clifford | exam_clifford | |||
exam_archive | exam_archive | |||
exam_structure | exam_structure | |||
exam_misc | exam_misc | |||
exam_pgcd | ||||
exam_mod_gcd | exam_mod_gcd | |||
exam_cra | ||||
exam_real_imag | exam_real_imag | |||
bugme_chinrem_gcd | exam_chinrem_gcd) | |||
pgcd_relatively_prime_bug | ||||
pgcd_infinite_loop) | set(ginac_checks | |||
check_numeric | ||||
check_inifcns | ||||
check_matrices | ||||
check_lsolve | ||||
check_cra) | ||||
set(ginac_timings | set(ginac_timings | |||
time_dennyfliegner | time_dennyfliegner | |||
time_gammaseries | time_gammaseries | |||
time_vandermonde | time_vandermonde | |||
time_toeplitz | time_toeplitz | |||
time_lw_A | time_lw_A | |||
time_lw_B | time_lw_B | |||
time_lw_C | time_lw_C | |||
time_lw_D | time_lw_D | |||
skipping to change at line 72 | skipping to change at line 71 | |||
time_antipode | time_antipode | |||
time_fateman_expand | time_fateman_expand | |||
time_uvar_gcd | time_uvar_gcd | |||
time_parser) | time_parser) | |||
macro(add_ginac_test thename) | macro(add_ginac_test thename) | |||
if ("${${thename}_sources}" STREQUAL "") | if ("${${thename}_sources}" STREQUAL "") | |||
set(${thename}_sources ${thename}.cpp ${${thename}_extra_src}) | set(${thename}_sources ${thename}.cpp ${${thename}_extra_src}) | |||
endif() | endif() | |||
add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources}) | add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources}) | |||
target_link_libraries(${thename} ginac ${LIBDL_LIBRARIES}) | target_link_libraries(${thename} ginac::ginac) | |||
add_dependencies(test_suite ${thename}) | ||||
add_dependencies(check ${thename}) | add_dependencies(check ${thename}) | |||
add_test(NAME ${thename} COMMAND ${thename}${CMAKE_EXECUTABLE_SUFFIX}) | add_test(NAME ${thename} COMMAND $<TARGET_FILE:${thename}>) | |||
endmacro() | endmacro() | |||
macro(add_ginac_timing thename) | macro(add_ginac_timing thename) | |||
set(${thename}_extra_src timer.cpp randomize_serials.cpp) | set(${thename}_extra_src timer.cpp randomize_serials.cpp) | |||
add_ginac_test(${thename}) | add_ginac_test(${thename}) | |||
target_compile_definitions(${thename} PRIVATE HAVE_CONFIG_H) | ||||
endmacro() | endmacro() | |||
set(check_matrices_extra_src genex.cpp) | set(check_matrices_extra_src genex.cpp) | |||
set(check_lsolve_extra_src genex.cpp) | set(check_lsolve_extra_src genex.cpp) | |||
set(exam_heur_gcd_sources heur_gcd_bug.cpp) | ||||
set(exam_numeric_archive_sources numeric_archive.cpp) | ||||
foreach(tst ${ginac_tests}) | foreach(exm ${ginac_exams}) | |||
add_ginac_test(${tst}) | add_ginac_test(${exm}) | |||
endforeach() | ||||
foreach(chk ${ginac_checks}) | ||||
add_ginac_test(${chk}) | ||||
endforeach() | endforeach() | |||
foreach(tmr ${ginac_timings}) | foreach(tmr ${ginac_timings}) | |||
add_ginac_timing(${tmr}) | add_ginac_timing(${tmr}) | |||
endforeach() | endforeach() | |||
End of changes. 13 change blocks. | ||||
21 lines changed or deleted | 24 lines changed or added |