From 3cea8889e37b970ffcd8cbf6c67127da531a8352 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Fri, 15 Jun 2012 22:00:34 +0200 Subject: [PATCH] CMake - Automatically link taskwarrior executable before launching tests with "make test". --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1124ad16c..a54f11c2d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,7 +10,7 @@ set (test_SRCS autocomplete.t color.t config.t date.t directory.t dom.t duration.t file.t i18n.t json.t list.t nibbler.t path.t rx.t t.t t2.t taskmod.t tdb2.t text.t uri.t util.t view.t json_test) -add_custom_target (test ./run_all DEPENDS ${test_SRCS} +add_custom_target (test ./run_all DEPENDS ${test_SRCS} task_executable WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) add_custom_target (build_tests DEPENDS ${test_SRCS}