diff options
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) |