32 lines
719 B
CMake
32 lines
719 B
CMake
if (USE_CLANG_TIDY)
|
|
find_host_program(CLANG_TIDY_EXECUTABLE NAMES clang-tidy clang-tidy-3.8 clang-tidy-8 clang-tidy-9 clang-tidy-10 clang-tidy-11)
|
|
if (CLANG_TIDY_EXECUTABLE)
|
|
set(CMAKE_CXX_CLANG_TIDY
|
|
${CLANG_TIDY_EXECUTABLE};
|
|
-fix-errors;
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (USE_CPPCHECK)
|
|
find_host_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)
|
|
list(APPEND CMAKE_CXX_CPPCHECK
|
|
"--enable=warning,performance,portability"
|
|
"--inconclusive"
|
|
"--force"
|
|
"--quiet"
|
|
"--std=c++11"
|
|
"--inline-suppr"
|
|
"--suppressions-list=${SCRIPTS_CMAKE_DIR}/CppCheckSuppressions.txt"
|
|
)
|
|
else()
|
|
set(CMAKE_CXX_CPPCHECK "")
|
|
endif()
|
|
|
|
add_subdirectory(modules)
|
|
add_subdirectory(games)
|
|
add_subdirectory(tools)
|
|
if (VISUALTESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|