mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
Fix install target Update cmake-format config file Format all cmake files. Update CPM.cmake version. Use FILE_SET HEADER to verify and install the header files. Prevent build problems caused by CPM_USE_LOCAL_PACKAGES Prevent problems with doctest if local found
15 lines
530 B
CMake
15 lines
530 B
CMake
# this script adds all subprojects to a single build to allow IDEs understand the full project
|
|
# structure.
|
|
|
|
cmake_minimum_required(VERSION 3.24...3.31)
|
|
|
|
project(BuildAll LANGUAGES CXX)
|
|
|
|
include(../cmake/tools.cmake)
|
|
|
|
# needed to generate test target
|
|
enable_testing()
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../standalone ${CMAKE_BINARY_DIR}/standalone)
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../test ${CMAKE_BINARY_DIR}/test)
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../documentation ${CMAKE_BINARY_DIR}/documentation)
|