aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
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
)