diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-05 19:57:39 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-05 19:57:39 -0400 |
commit | a92b4038179c3706bd176097be1caabd88824755 (patch) | |
tree | 3ca109b34e24e5940e2d12acca39091c83963fd3 /CMakeLists.txt | |
parent | ea6e2613aca23c84373e686d739498969062f79e (diff) | |
download | cleanpath-a92b4038179c3706bd176097be1caabd88824755.tar.gz |
Add tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
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) |