From 3a599b66f5d30107ece6f0abf5ea4ebf238955f3 Mon Sep 17 00:00:00 2001 From: Federico Hernandez Date: Sun, 2 Jan 2011 23:53:50 +0100 Subject: [PATCH] CMake - added stub for the cmake file in test - proof of concept to generate the test binaries by linking to libtask --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e611fac3b..598194ff7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,8 @@ -include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/test) +cmake_minimum_required (VERSION 2.8) +include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/test ${LUA_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR} ${READLINE_INCLUDE_DIR}) + add_custom_target (test ./run_all DEPENDS date.t WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) + add_executable (date.t date.t.cpp test.cpp) +target_link_libraries (date.t task ${LUA_LIBRARIES} ${READLINE_LIBRARY})