diff options
author | Lukas Rusak <lorusak@gmail.com> | 2021-12-31 11:24:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 11:24:16 -0800 |
commit | 8734320bc1785a6e23efedeb8c2040f5076bc0ce (patch) | |
tree | 187e6e957acd37bb60f2d13f799045d5989418b4 /CMakeLists.txt | |
parent | 5b380ce240c1e8f8b29571d5b316a20ecd875647 (diff) | |
parent | b93c915cfd875c6c0cdb53385a7eb19ab02b9bb8 (diff) |
Merge pull request #17820 from lrusak/compiler-warnings
[cmake] add targets for cppcheck and clang-tidy
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3abd1b6a63..d0b08b8551 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,7 +274,6 @@ add_compile_options(${ARCH_DEFINES} "${SYSTEM_DEFINES}" ${DEP_DEFINES} ${PATH_DE set(core_DEPENDS "" CACHE STRING "" FORCE) set(test_archives "" CACHE STRING "" FORCE) set(test_sources "" CACHE STRING "" FORCE) -set(sca_sources "" CACHE STRING "" FORCE) mark_as_advanced(core_DEPENDS) mark_as_advanced(test_archives) mark_as_advanced(test_sources) @@ -405,9 +404,6 @@ if(CORE_HOST_IS_TARGET AND ENABLE_TESTING) # Enable unit-test related targets enable_testing() gtest_add_tests(${APP_NAME_LC}-test "" ${test_sources}) - if(NOT WIN32) - sca_add_tests() - endif() add_custom_target(check ${CMAKE_CTEST_COMMAND} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) add_dependencies(check ${APP_NAME_LC}-test) @@ -426,6 +422,8 @@ if(CORE_HOST_IS_TARGET AND ENABLE_TESTING) -DCMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}) set_target_properties(check-commits PROPERTIES FOLDER "Build Utilities") + include(${CMAKE_SOURCE_DIR}/cmake/scripts/common/StaticAnalysis.cmake) + # code coverage if(CMAKE_BUILD_TYPE STREQUAL Coverage) if(EXISTS ${CMAKE_SOURCE_DIR}/cmake/scripts/${CORE_SYSTEM_NAME}/CodeCoverage.cmake) |