From 5aaddd16f2aabccf07687f1761567eb6455abe61 Mon Sep 17 00:00:00 2001 From: Adrien M Date: Fri, 20 Mar 2015 19:03:32 +0100 Subject: Dissociate 'make test' & 'make install' Possibility to run the test without having to lunch the 'make install' command. Signed-off-by: Adrien M --- test/tokenizer/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/tokenizer') diff --git a/test/tokenizer/CMakeLists.txt b/test/tokenizer/CMakeLists.txt index f68f6a3..8a00cb9 100644 --- a/test/tokenizer/CMakeLists.txt +++ b/test/tokenizer/CMakeLists.txt @@ -44,5 +44,9 @@ if(BUILD_TESTING) include_directories(${PROJECT_SOURCE_DIR}/utility) target_link_libraries(tokenizerTest pfw_utility) - add_test(tokenizerTest tokenizerTest) + add_test(NAME tokenizerTest + COMMAND tokenizerTest) + + # Custom function defined in the top-level CMakeLists + set_test_env(tokenizerTest) endif() -- cgit v1.1