The test suite can be run in some cross-compilation setups (say, MinGW
on Linux). Howerver CTest's add_test command does not add the .exe
suffix on its own, as a result `make test' fails. Let's help add_test a bit.
add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources})
target_link_libraries(${thename} ginac)
add_dependencies(check ${thename})
- add_test(${thename} ${thename})
+ add_test(NAME ${thename} COMMAND ${thename}${CMAKE_EXECUTABLE_SUFFIX})
endmacro()
macro(add_ginac_timing thename)