diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f62ffe..d82ed89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ set( CSSH_VERSION 0.0.1 ) set(CMAKE_C_FLAGS "-std=c99 -Wall -pedantic -Wfatal-errors -Werror -fPIC -O0 -Wno-unused-but-set-variable -g -D_XOPEN_SOURCE=700") +enable_testing( ) + add_subdirectory(src) add_subdirectory(tests) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f3becb6..fb9e6c2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,5 +2,6 @@ include_directories(../src) add_executable(progressbartest progressbartest.c ../src/progressbar.c ../src/port.c) -target_link_libraries(progressbartest ncurses) +target_link_libraries(progressbartest) +add_test(ProgressBarPool progressbartest) |