Commit 70a1fbee authored by Richard Newton's avatar Richard Newton

Fix running tests from cmake on linux.

parent e1b2b649
......@@ -620,7 +620,11 @@ foreach(test ${tests})
if(RT_LIBRARY)
target_link_libraries(${test} ${RT_LIBRARY})
endif()
if(WIN32)
add_test(NAME ${test} WORKING_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Debug COMMAND ${test})
else()
add_test(NAME ${test} COMMAND ${test})
endif()
endforeach()
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment