-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 728 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (22 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 4.0)
# Enable scan for dependencies
set(CMAKE_CXX_SCAN_FOR_MODULES ON)
# disable C++ extensions
set(CMAKE_CXX_EXTENSIONS OFF)
# force C++ version to 23
set(CMAKE_CXX_STANDARD 23)
# standard is required
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Include Std Modules cmake
# must be included BEFORE project() call
include(${CMAKE_MODULE_PATH}/import-std.cmake)
# Dependencies
include(${CMAKE_MODULE_PATH}/CPM.cmake)
CPMAddPackage("gh:fmtlib/fmt#11.1.4")
# project and language to be used
project(cpp23-project-template
LANGUAGES CXX
HOMEPAGE_URL "https://roy-fokker.github.io/cpp23-project-template/"
DESCRIPTION "C++23 based Project Template.")
# executable source folder
add_subdirectory(src)