mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
14 lines
288 B
CMake
14 lines
288 B
CMake
cmake_minimum_required (VERSION 3.5)
|
|
|
|
project(cppcheck_analysis)
|
|
|
|
# Use debug build as recommended
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
# Have cmake create a compile database
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
# Add sub directories
|
|
add_subdirectory(subproject1)
|
|
add_subdirectory(subproject2)
|