OPTION(ENABLE_TEST "Enable unit and regression tests" ON)
OPTION(ENABLE_COVERAGE "Enable code coverage (GCC only, automatically sets ENABLE_TEST to ON)" FALSE)
OPTION(ENABLE_INSTALL "Enable installing of libraries" ON)
+OPTION(ENABLE_CLANG_TIDY "Enable custom build-time code health checks" OFF)
IF(WIN32 AND MSVC)
OPTION(MSVC_USE_STATIC_CRT "Use static CRT" OFF)
ADD_CUSTOM_TARGET(run_all_tests)
ENDIF(ENABLE_TEST)
+IF(ENABLE_CLANG_TIDY)
+ IF(NOT CLANG_TIDY_PATH)
+ SET(CLANG_TIDY_PATH clang-tidy)
+ ENDIF(NOT CLANG_TIDY_PATH)
+ SET(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_PATH})
+ENDIF(ENABLE_CLANG_TIDY)
+
add_subdirectory(libarchive)
add_subdirectory(cat)
add_subdirectory(tar)