add new cppcheck example with updated dockerfiles

This commit is contained in:
Thom Troy
2017-07-02 23:20:41 +01:00
parent 59159c4c38
commit ef0d61aa0e
16 changed files with 395 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
cmake_minimum_required (VERSION 3.0)
project(cppcheck_analysis)
# Have cmake create a compile database
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Add a custom CMake Modules directory
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules
${CMAKE_MODULE_PATH})
# find the cppcheck binary
find_package(CppCheck)
# Add sub directories
add_subdirectory(subproject1)
add_subdirectory(subproject2)