aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:57:39 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:57:39 -0400
commita92b4038179c3706bd176097be1caabd88824755 (patch)
tree3ca109b34e24e5940e2d12acca39091c83963fd3 /CMakeLists.txt
parentea6e2613aca23c84373e686d739498969062f79e (diff)
downloadcleanpath-a92b4038179c3706bd176097be1caabd88824755.tar.gz
Add tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 096a49e..71de6df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,10 @@ set(LIB_SOURCES lib/cleanpath.c)
set(MAIN_SOURCES src/main.c)
set(INCLUDES include/cleanpath.h)
+include (CTest)
+enable_testing()
+add_subdirectory(tests)
+
add_library(cleanpath_static STATIC ${LIB_SOURCES})
set_target_properties(cleanpath_static PROPERTIES PUBLIC_HEADER ${INCLUDES})
set_target_properties(cleanpath_static PROPERTIES OUTPUT_NAME cleanpath)
@@ -30,4 +34,4 @@ install(TARGETS cleanpath
RUNTIME DESTINATION bin)
install(FILES ${CMAKE_SOURCE_DIR}/docs/man/cleanpath.1
- DESTINATION share/man/man1 COMPONENT doc) \ No newline at end of file
+ DESTINATION share/man/man1 COMPONENT doc)