mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
16 lines
424 B
CMake
16 lines
424 B
CMake
cmake_minimum_required (VERSION 3.5)
|
|
|
|
project(cppcheck_analysis)
|
|
|
|
# Add a custom CMake Modules directory
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules
|
|
${CMAKE_MODULE_PATH})
|
|
|
|
# Add sub directories
|
|
add_subdirectory(subproject1)
|
|
add_subdirectory(subproject2)
|
|
|
|
set(CLANG_FORMAT_BIN_NAME clang-format-3.6)
|
|
set(CLANG_FORMAT_EXCLUDE_PATTERNS "build/" ${CMAKE_BINARY_DIR})
|
|
find_package(ClangFormat)
|