From 1581b7c8ae6096c753cfb1401f91789603d16743 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Wed, 15 Apr 2020 17:07:37 -0700 Subject: [cmake] add targets for cppcheck and clang-tidy --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 447d08f589..534e8e29f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,6 +416,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) -- cgit v1.2.3 From b93c915cfd875c6c0cdb53385a7eb19ab02b9bb8 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Sat, 17 Apr 2021 10:22:14 -0700 Subject: [cmake] remove old static analysis methods --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 534e8e29f0..6b5b4effb5 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) @@ -395,9 +394,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) -- cgit v1.2.3