cmake: force tests to run from source dir

This commit is contained in:
Pavel Kartavyy 2015-05-18 15:18:25 +03:00
parent b96f132d21
commit be684446bd

View File

@ -10,6 +10,6 @@ else()
endif()
macro (add_check target)
add_test(test_${target} ${target})
add_test(NAME test_${target} COMMAND ${target} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_dependencies(check ${target})
endmacro (add_check)