2020-04-22 11:04:19 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2018-07-23 08:34:41 +02:00
|
|
|
project(Cppcheck)
|
2015-02-13 19:00:14 +01:00
|
|
|
|
2020-04-02 13:55:49 +02:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
2015-11-26 20:25:09 +01:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2020-04-02 13:55:49 +02:00
|
|
|
include(cmake/versions.cmake)
|
|
|
|
include(cmake/options.cmake)
|
|
|
|
include(cmake/findDependencies.cmake)
|
|
|
|
include(cmake/compileroptions.cmake)
|
|
|
|
include(cmake/compilerDefinitions.cmake)
|
|
|
|
include(cmake/buildFiles.cmake)
|
|
|
|
include(cmake/cxx11.cmake)
|
2019-06-28 06:57:05 +02:00
|
|
|
|
|
|
|
use_cxx11()
|
2015-02-13 19:00:14 +01:00
|
|
|
|
2019-08-17 10:53:07 +02:00
|
|
|
file(GLOB addons "addons/*.py")
|
2015-02-13 19:00:14 +01:00
|
|
|
file(GLOB cfgs "cfg/*.cfg")
|
2019-08-17 10:53:07 +02:00
|
|
|
file(GLOB platforms "platforms/*.xml")
|
2015-02-13 19:00:14 +01:00
|
|
|
|
2015-11-26 21:01:07 +01:00
|
|
|
if (BUILD_TESTS)
|
|
|
|
enable_testing()
|
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
add_subdirectory(externals/tinyxml)
|
2016-08-06 18:21:54 +02:00
|
|
|
add_subdirectory(externals/simplecpp)
|
2015-02-13 19:00:14 +01:00
|
|
|
add_subdirectory(lib) # CppCheck Library
|
|
|
|
add_subdirectory(cli) # Client application
|
|
|
|
add_subdirectory(test) # Tests
|
|
|
|
ADD_SUBDIRECTORY(gui) # Graphical application
|
2019-06-01 10:48:39 +02:00
|
|
|
ADD_SUBDIRECTORY(tools/triage) # Triage tool
|
2020-03-31 09:33:58 +02:00
|
|
|
add_subdirectory(oss-fuzz) # OSS-Fuzz clients
|
2015-02-13 19:00:14 +01:00
|
|
|
|
2020-04-02 13:55:49 +02:00
|
|
|
include(cmake/printInfo.cmake)
|
|
|
|
include(cmake/clang_tidy.cmake)
|