From 0cd17b0afde7fc97584af31dfdfc376ef6906517 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 10 May 2014 22:59:46 +0200 Subject: Added test case command target as a default target * fixed compiler flag variable (previous content was deleted) --- CMakeLists.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index bb3e319..5173ef4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(InputXSLT) set( CMAKE_CXX_FLAGS - "-std=c++11 -W -Wall -Wextra -Winline -pedantic -g" + "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -Wextra -Winline -pedantic" ) include_directories( @@ -49,9 +49,13 @@ target_link_libraries( ${Libraries} ) -add_custom_command( - TARGET +add_custom_target( + testcase + ALL + WORKING_DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/test/ + COMMAND + sh check.sh + DEPENDS test - POST_BUILD COMMAND - cd ../test && ./check.sh ) -- cgit v1.2.3