Adding all to cppcheck check targets and removing third party libraries and test files

parent 16f7aa84
......@@ -9,10 +9,8 @@ endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_CXX_CPPCHECK "cppcheck")
endif()
option(PISTACHE_BUILD_TESTS "build tests alongside the project" OFF)
option(PISTACHE_BUILD_EXAMPLES "build examples alongside the project" OFF)
option(PISTACHE_INSTALL "add pistache as install target (recommended)" ON)
......@@ -20,6 +18,16 @@ option(PISTACHE_SSL "add support for SSL server" OFF)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)
if (CMAKE_CXX_CPPCHECK)
list(
APPEND CMAKE_CXX_CPPCHECK
"--enable=all"
"--suppress=*:${PROJECT_SOURCE_DIR}/googletest*"
"--suppress=*:${PROJECT_SOURCE_DIR}/tests/*"
)
endif()
INCLUDE(Dart)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment