2015-02-13 19:00:14 +01:00
|
|
|
project(CppCheck)
|
2018-06-02 18:31:33 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8.11)
|
2015-02-13 19:00:14 +01:00
|
|
|
|
2015-11-26 20:25:09 +01:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
include(cmake/versions.cmake REQUIRED)
|
|
|
|
include(cmake/options.cmake REQUIRED)
|
|
|
|
include(cmake/findDependencies.cmake REQUIRED)
|
|
|
|
include(cmake/compileroptions.cmake REQUIRED)
|
|
|
|
include(cmake/compilerDefinitions.cmake REQUIRED)
|
|
|
|
include(cmake/buildFiles.cmake REQUIRED)
|
|
|
|
|
|
|
|
file(GLOB cfgs "cfg/*.cfg")
|
|
|
|
|
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
|
|
|
|
|
|
|
|
include(cmake/printInfo.cmake REQUIRED)
|