diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca8b0ac..82d9df9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,16 +1,18 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.25) | 1 | cmake_minimum_required(VERSION 3.20) |
| 2 | 2 | ||
| 3 | set(CMAKE_CXX_STANDARD 20) | 3 | set(CMAKE_C_STANDARD 17) |
| 4 | set(CMAKE_CXX_STANDARD_REQUIRED ON) | 4 | set(CMAKE_C_STANDARD_REQUIRED ON) |
| 5 | set(CMAKE_CXX_EXTENSIONS OFF) | 5 | set(CMAKE_C_EXTENSIONS OFF) |
| 6 | set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1) | ||
| 7 | set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a") | ||
| 8 | set(CMAKE_CXX_SCAN_FOR_MODULES ON) | ||
| 9 | 6 | ||
| 10 | # Multi-threaded statically-linked runtime library (-MT) | 7 | # Multi-threaded statically-linked runtime library (-MT) |
| 11 | set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | 8 | # Debug results in a linker warning, I think because the DX12 libs are linked |
| 9 | # against a Release version of the runtime. | ||
| 10 | #set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | ||
| 11 | set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") | ||
| 12 | 12 | ||
| 13 | project(dx12) | 13 | add_compile_definitions(-D_AMD64_=1) |
| 14 | |||
| 15 | project(dx12c) | ||
| 14 | 16 | ||
| 15 | # External dependencies. | 17 | # External dependencies. |
| 16 | add_subdirectory(contrib/DirectX-Headers) | 18 | add_subdirectory(contrib/DirectX-Headers) |
| @@ -18,7 +20,8 @@ add_subdirectory(contrib/glfw) | |||
| 18 | 20 | ||
| 19 | # Common libraries. | 21 | # Common libraries. |
| 20 | add_subdirectory(dxg) | 22 | add_subdirectory(dxg) |
| 21 | add_subdirectory(dxwindow) | 23 | add_subdirectory(app) |
| 22 | 24 | ||
| 23 | # Applications. | 25 | # Applications. |
| 26 | #add_subdirectory(game) | ||
| 24 | add_subdirectory(hello) | 27 | add_subdirectory(hello) |
