cppcheck/CMakeLists.txt

115 lines
4.5 KiB
CMake
Raw Permalink Normal View History

cmake_minimum_required(VERSION 3.5)
Fixed some cmakelint warnings (#6318) This fixes ```sh $ cmakelint CMakeLists.txt CMakeLists.txt:2: Extra spaces between 'if' and its () [whitespace/extra] CMakeLists.txt:10: Extra spaces between 'set' and its () [whitespace/extra] $ cmakelint cmake/*cmake clang_tidy.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:5: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:20: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:32: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:2: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:4: Extra spaces between 'endif' and its () [whitespace/extra] compilerCheck.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:8: Extra spaces between 'endif' and its () [whitespace/extra] compilerCheck.cmake:10: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:12: Extra spaces between 'endif' and its () [whitespace/extra] compilerDefinitions.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:16: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:18: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:19: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:32: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:40: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:44: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:48: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:52: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:56: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:60: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:10: Line ends in whitespace [whitespace/eol] compileroptions.cmake:14: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:20: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:27: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:31: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:64: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:71: Extra spaces between 'elseif' and its () [whitespace/extra] compileroptions.cmake:72: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:77: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:86: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:136: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:142: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:216: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:222: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:223: Tab found; please use spaces [whitespace/tabs] compileroptions.cmake:226: Extra spaces between 'if' and its () [whitespace/extra] cxx11.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] cxx11.cmake:5: Extra spaces between 'set' and its () [whitespace/extra] cxx11.cmake:6: Extra spaces between 'else' and its () [whitespace/extra] cxx11.cmake:7: Extra spaces between 'set' and its () [whitespace/extra] cxx11.cmake:9: Expression repeated inside endmacro; better to use only endmacro() [readability/logic] dynamic_analyzer_options.cmake:23: Extra spaces between 'if' and its () [whitespace/extra] dynamic_analyzer_options.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:9: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:12: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:33: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:43: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:45: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:51: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:54: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:59: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:66: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:68: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:84: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:5: Weird indentation; use 2 spaces [whitespace/indent] options.cmake:9: Weird indentation; use 2 spaces [whitespace/indent] options.cmake:27: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:31: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:41: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:57: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:65: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:83: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:1: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:3: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:4: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:6: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:7: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:8: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:9: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:12: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:13: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:14: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:15: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:16: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:23: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:41: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:42: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:43: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:44: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:50: Expression repeated inside endif; better to use only endif() [readability/logic] printInfo.cmake:62: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:66: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:70: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:78: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:84: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:85: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:86: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:87: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:93: Weird indentation; use 2 spaces [whitespace/indent] printInfo.cmake:94: Weird indentation; use 2 spaces [whitespace/indent] printInfo.cmake:95: Weird indentation; use 2 spaces [whitespace/indent] qtCompat.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] ```
2024-04-23 07:24:14 +02:00
if(MSVC)
cmake_minimum_required(VERSION 3.13)
endif()
2024-10-27 00:21:12 +02:00
project(Cppcheck VERSION 2.16.99 LANGUAGES CXX)
2015-02-13 19:00:14 +01:00
include(cmake/options.cmake)
include(cmake/cxx11.cmake)
use_cxx11()
Fixed some cmakelint warnings (#6318) This fixes ```sh $ cmakelint CMakeLists.txt CMakeLists.txt:2: Extra spaces between 'if' and its () [whitespace/extra] CMakeLists.txt:10: Extra spaces between 'set' and its () [whitespace/extra] $ cmakelint cmake/*cmake clang_tidy.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:5: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:20: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] clang_tidy.cmake:32: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:2: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:4: Extra spaces between 'endif' and its () [whitespace/extra] compilerCheck.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:8: Extra spaces between 'endif' and its () [whitespace/extra] compilerCheck.cmake:10: Extra spaces between 'if' and its () [whitespace/extra] compilerCheck.cmake:12: Extra spaces between 'endif' and its () [whitespace/extra] compilerDefinitions.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:16: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:18: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:19: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:32: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:40: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:44: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:48: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:52: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:56: Extra spaces between 'if' and its () [whitespace/extra] compilerDefinitions.cmake:60: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:10: Line ends in whitespace [whitespace/eol] compileroptions.cmake:14: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:20: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:27: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:31: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:64: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:71: Extra spaces between 'elseif' and its () [whitespace/extra] compileroptions.cmake:72: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:77: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:86: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:136: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:142: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:216: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:222: Extra spaces between 'if' and its () [whitespace/extra] compileroptions.cmake:223: Tab found; please use spaces [whitespace/tabs] compileroptions.cmake:226: Extra spaces between 'if' and its () [whitespace/extra] cxx11.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] cxx11.cmake:5: Extra spaces between 'set' and its () [whitespace/extra] cxx11.cmake:6: Extra spaces between 'else' and its () [whitespace/extra] cxx11.cmake:7: Extra spaces between 'set' and its () [whitespace/extra] cxx11.cmake:9: Expression repeated inside endmacro; better to use only endmacro() [readability/logic] dynamic_analyzer_options.cmake:23: Extra spaces between 'if' and its () [whitespace/extra] dynamic_analyzer_options.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:3: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:6: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:9: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:12: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:17: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:33: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:36: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:43: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:45: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:51: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:54: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:59: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:66: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:68: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] findDependencies.cmake:84: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:5: Weird indentation; use 2 spaces [whitespace/indent] options.cmake:9: Weird indentation; use 2 spaces [whitespace/indent] options.cmake:27: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:30: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:31: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:41: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:57: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:65: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:74: Extra spaces between 'if' and its () [whitespace/extra] options.cmake:83: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:1: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:3: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:4: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:6: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:7: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:8: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:9: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:12: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:13: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:14: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:15: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:16: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:23: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:41: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:42: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:43: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:44: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:50: Expression repeated inside endif; better to use only endif() [readability/logic] printInfo.cmake:62: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:66: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:70: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:78: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:84: Extra spaces between 'if' and its () [whitespace/extra] printInfo.cmake:85: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:86: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:87: Mismatching spaces inside () after command [whitespace/mismatch] printInfo.cmake:93: Weird indentation; use 2 spaces [whitespace/indent] printInfo.cmake:94: Weird indentation; use 2 spaces [whitespace/indent] printInfo.cmake:95: Weird indentation; use 2 spaces [whitespace/indent] qtCompat.cmake:1: Extra spaces between 'if' and its () [whitespace/extra] ```
2024-04-23 07:24:14 +02:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(GNUInstallDirs)
include(cmake/compilerCheck.cmake)
include(cmake/versions.cmake)
include(cmake/findDependencies.cmake)
include(cmake/compileroptions.cmake)
include(cmake/compilerDefinitions.cmake)
include(cmake/buildFiles.cmake)
if(BUILD_GUI)
include(cmake/qtCompat.cmake)
endif()
include(cmake/printInfo.cmake)
2015-02-13 19:00:14 +01:00
file(GLOB addons_py "addons/*.py")
file(GLOB addons_json "addons/*.json")
2015-02-13 19:00:14 +01:00
file(GLOB cfgs "cfg/*.cfg")
file(GLOB platforms "platforms/*.xml")
2015-02-13 19:00:14 +01:00
if(LIBXML2_XMLLINT_EXECUTABLE)
add_custom_target(validateCFG DEPENDS validateCFG-cmd)
add_custom_command(OUTPUT validateCFG-cmd
COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/cfg/cppcheck-cfg.rng)
foreach(cfg ${cfgs})
add_custom_command(OUTPUT validateCFG-cmd APPEND
COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --noout --relaxng ${CMAKE_SOURCE_DIR}/cfg/cppcheck-cfg.rng ${cfg})
endforeach()
# this is a symbolic name for a build rule and not an output file
set_source_files_properties(validateCFG-cmd PROPERTIES SYMBOLIC "true")
add_custom_target(validatePlatforms ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/platforms/cppcheck-platforms.rng)
foreach(platform ${platforms})
get_filename_component(platformname ${platform} NAME_WE)
add_custom_target(validatePlatforms-${platformname} ${LIBXML2_XMLLINT_EXECUTABLE} --noout --relaxng ${CMAKE_SOURCE_DIR}/platforms/cppcheck-platforms.rng ${platform})
add_dependencies(validatePlatforms validatePlatforms-${platformname})
endforeach()
add_custom_target(errorlist-xml $<TARGET_FILE:cppcheck> --errorlist > ${CMAKE_BINARY_DIR}/errorlist.xml
DEPENDS cppcheck)
add_custom_target(example-xml $<TARGET_FILE:cppcheck> --xml --enable=all --inconclusive --max-configs=1 ${CMAKE_SOURCE_DIR}/samples 2> ${CMAKE_BINARY_DIR}/example.xml
DEPENDS cppcheck)
add_custom_target(createXMLExamples DEPENDS errorlist-xml example-xml)
if(Python_EXECUTABLE)
add_custom_target(checkCWEEntries ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/listErrorsWithoutCWE.py -F ${CMAKE_BINARY_DIR}/errorlist.xml
DEPENDS errorlist-xml)
endif()
add_custom_target(validateXML ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/cppcheck-errors.rng
COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --noout --relaxng ${CMAKE_SOURCE_DIR}/cppcheck-errors.rng ${CMAKE_BINARY_DIR}/errorlist.xml
COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --noout --relaxng ${CMAKE_SOURCE_DIR}/cppcheck-errors.rng ${CMAKE_BINARY_DIR}/example.xml
DEPENDS createXMLExamples
)
add_custom_target(validateRules ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/rules/*.xml)
endif()
2024-11-17 16:45:32 +01:00
# TODO: add the following Makefile features:
# - "man/cppcheck.1" target
# - "tags" target
# - Cygwin handling
# - MinGW handling
if(BUILD_TESTS)
2015-11-26 21:01:07 +01:00
enable_testing()
endif()
add_custom_target(copy_cfg ALL
${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/cfg"
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/cfg"
COMMENT "Copying cfg files to ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
# TODO: copy *.py and *.json only
add_custom_target(copy_addons ALL
${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/addons"
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/addons"
COMMENT "Copying addons files to ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
add_custom_target(copy_platforms ALL
${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/platforms"
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/platforms"
COMMENT "Copying platforms files to ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}")
if(USE_BUNDLED_TINYXML2)
message(STATUS "Using bundled version of tinyxml2")
add_subdirectory(externals/tinyxml2)
endif()
add_subdirectory(externals/simplecpp)
add_subdirectory(lib) # CppCheck Library
2015-02-13 19:00:14 +01:00
add_subdirectory(cli) # Client application
add_subdirectory(test) # Tests
2020-05-10 16:41:50 +02:00
add_subdirectory(gui) # Graphical application
add_subdirectory(tools/triage) # Triage tool
add_subdirectory(tools)
add_subdirectory(man)
2015-02-13 19:00:14 +01:00
include(cmake/clang_tidy.cmake)