Put executables and DLLs into the `bin` subdirectory so the system
can locate GiNaC (and CLN) DLLs without extra configuration.
# make check
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
+if (WIN32)
+ if (NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
+ endif()
+endif()
# make info
add_custom_target(info ALL)
add_custom_target(html)
add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources})
target_link_libraries(${thename} ginac ${LIBDL_LIBRARIES})
add_dependencies(check ${thename})
- add_test(NAME ${thename} COMMAND ${thename}${CMAKE_EXECUTABLE_SUFFIX})
+ add_test(NAME ${thename} COMMAND $<TARGET_FILE:${thename}>)
endmacro()
macro(add_ginac_timing thename)