Calculator

- Added standalone calculator utility.
This commit is contained in:
Paul Beckingham 2014-01-02 01:49:37 -05:00
parent fae592f921
commit d65a844814
4 changed files with 178 additions and 7 deletions

View file

@ -60,20 +60,23 @@ set (task_SRCS A3.cpp A3.h
add_library (task STATIC ${task_SRCS})
add_executable (task_executable main.cpp)
add_executable (parser_executable bnf.cpp)
add_executable (args_executable args.cpp)
add_executable (calc_executable calc.cpp)
add_executable (parser_executable bnf.cpp)
add_executable (args_executable args.cpp)
# 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 (parser_executable task commands columns task ${TASK_LIBRARIES})
target_link_libraries (args_executable task commands columns task ${TASK_LIBRARIES})
target_link_libraries (calc_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")
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_property (TARGET calc_executable PROPERTY OUTPUT_NAME "calc")
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_CXX_FLAGS_GCOV "--coverage")