Unit Tests

- Now build and run the color tests.
This commit is contained in:
Paul Beckingham 2014-06-08 18:10:51 -04:00
parent eb915bd054
commit 1647ca6b4d
10 changed files with 336 additions and 9 deletions

View file

@ -33,11 +33,10 @@ add_custom_target (build_tests DEPENDS ${test_SRCS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
foreach (src_FILE ${test_SRCS})
add_executable (${src_FILE} "${src_FILE}.cpp" test.cpp)
target_link_libraries (${src_FILE} tasksh ${TASKSH_LIBRARIES})
add_executable (${src_FILE} "${src_FILE}.cpp"
../src/Color.cpp
../src/text.cpp
test.cpp)
target_link_libraries (${src_FILE} ${TASKSH_LIBRARIES})
endforeach (src_FILE)
#SET(CMAKE_BUILD_TYPE gcov)
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
#SET(CMAKE_C_FLAGS_GCOV "--coverage")
#SET(CMAKE_EXE_LINKER_FLAGS_GCOV "--coverage")