1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../ginac)
2 add_definitions(-DIN_GINAC)
39 pgcd_relatively_prime_bug
70 macro(add_ginac_test thename)
71 if ("${${thename}_sources}" STREQUAL "")
72 set(${thename}_sources ${thename}.cpp ${${thename}_extra_src})
74 add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources})
75 target_link_libraries(${thename} ginac ${LIBDL_LIBRARIES})
76 add_dependencies(check ${thename})
77 add_test(NAME ${thename} COMMAND ${thename}${CMAKE_EXECUTABLE_SUFFIX})
80 macro(add_ginac_timing thename)
81 set(${thename}_extra_src timer.cpp randomize_serials.cpp)
82 add_ginac_test(${thename})
85 set(check_matrices_extra_src genex.cpp)
86 set(check_lsolve_extra_src genex.cpp)
87 set(exam_heur_gcd_sources heur_gcd_bug.cpp)
88 set(exam_numeric_archive_sources numeric_archive.cpp)
90 foreach(tst ${ginac_tests})
91 add_ginac_test(${tst})
94 foreach(tmr ${ginac_timings})
95 add_ginac_timing(${tmr})