mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser Testing
- Added helper binaries for parser testing.
This commit is contained in:
parent
626f89c263
commit
4efe5d4a52
2 changed files with 11 additions and 2 deletions
2
src/.gitignore
vendored
2
src/.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
*.o
|
*.o
|
||||||
Makefile.in
|
Makefile.in
|
||||||
*_test
|
*_test
|
||||||
|
args
|
||||||
|
parser
|
||||||
|
|
|
@ -53,15 +53,22 @@ set (task_SRCS A3.cpp A3.h
|
||||||
wcwidth6.cpp)
|
wcwidth6.cpp)
|
||||||
|
|
||||||
add_library (task STATIC ${task_SRCS})
|
add_library (task STATIC ${task_SRCS})
|
||||||
add_executable (task_executable main.cpp)
|
add_executable (task_executable main.cpp)
|
||||||
|
add_executable (parser_executable bnf.cpp)
|
||||||
|
add_executable (args_executable args.cpp)
|
||||||
|
|
||||||
# Yes, 'task' is included twice, other linking fails on assorted OSes.
|
# Yes, 'task' is included twice, otherwise linking fails on assorted OSes.
|
||||||
target_link_libraries (task_executable task commands columns task ${TASK_LIBRARIES})
|
target_link_libraries (task_executable task commands columns task ${TASK_LIBRARIES})
|
||||||
|
target_link_libraries (parser_executable task commands columns task ${TASK_LIBRARIES})
|
||||||
|
target_link_libraries (args_executable task commands columns task ${TASK_LIBRARIES})
|
||||||
|
|
||||||
set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task")
|
set_property (TARGET task_executable PROPERTY OUTPUT_NAME "task")
|
||||||
|
|
||||||
install (TARGETS task_executable DESTINATION ${TASK_BINDIR})
|
install (TARGETS task_executable DESTINATION ${TASK_BINDIR})
|
||||||
|
|
||||||
|
set_property (TARGET parser_executable PROPERTY OUTPUT_NAME "parser")
|
||||||
|
set_property (TARGET args_executable PROPERTY OUTPUT_NAME "args")
|
||||||
|
|
||||||
#SET(CMAKE_BUILD_TYPE gcov)
|
#SET(CMAKE_BUILD_TYPE gcov)
|
||||||
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
|
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
|
||||||
#SET(CMAKE_C_FLAGS_GCOV "--coverage")
|
#SET(CMAKE_C_FLAGS_GCOV "--coverage")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue