diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 82d9df9..58024cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.20) | 1 | cmake_minimum_required(VERSION 3.20) |
| 2 | 2 | ||
| 3 | set(CMAKE_C_STANDARD 17) | 3 | set(CMAKE_C_STANDARD 23) |
| 4 | set(CMAKE_C_STANDARD_REQUIRED ON) | 4 | set(CMAKE_C_STANDARD_REQUIRED ON) |
| 5 | set(CMAKE_C_EXTENSIONS OFF) | 5 | set(CMAKE_C_EXTENSIONS OFF) |
| 6 | 6 | ||
| @@ -10,12 +10,14 @@ set(CMAKE_C_EXTENSIONS OFF) | |||
| 10 | #set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | 10 | #set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") |
| 11 | set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") | 11 | set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") |
| 12 | 12 | ||
| 13 | # Set the target architecture. VSCode doesn't seem to set this by default. | ||
| 13 | add_compile_definitions(-D_AMD64_=1) | 14 | add_compile_definitions(-D_AMD64_=1) |
| 14 | 15 | ||
| 15 | project(dx12c) | 16 | project(dx12c) |
| 16 | 17 | ||
| 17 | # External dependencies. | 18 | # External dependencies. |
| 18 | add_subdirectory(contrib/DirectX-Headers) | 19 | # TODO: These could be moved to dxg/app respectively. |
| 20 | add_subdirectory(contrib/DirectX-Headers-1.618.2) | ||
| 19 | add_subdirectory(contrib/glfw) | 21 | add_subdirectory(contrib/glfw) |
| 20 | 22 | ||
| 21 | # Common libraries. | 23 | # Common libraries. |
| @@ -25,3 +27,4 @@ add_subdirectory(app) | |||
| 25 | # Applications. | 27 | # Applications. |
| 26 | #add_subdirectory(game) | 28 | #add_subdirectory(game) |
| 27 | add_subdirectory(hello) | 29 | add_subdirectory(hello) |
| 30 | add_subdirectory(triangle) | ||
