aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-02 16:39:36 -0800
committer3gg <3gg@shellblade.net>2025-12-02 16:39:36 -0800
commit6c8ae19be66cee247980a48e736a4e05d14de179 (patch)
treed860767907bf0cbe17ec66422e11bea700cf56d9 /CMakeLists.txt
parent8f594c8ebd11f0e5f8a0c6369c3fe7383d250cbe (diff)
Immediate-mode renderer, triangle demo, shader compilation in cmake, Agility SDKHEADmain
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
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 @@
1cmake_minimum_required(VERSION 3.20) 1cmake_minimum_required(VERSION 3.20)
2 2
3set(CMAKE_C_STANDARD 17) 3set(CMAKE_C_STANDARD 23)
4set(CMAKE_C_STANDARD_REQUIRED ON) 4set(CMAKE_C_STANDARD_REQUIRED ON)
5set(CMAKE_C_EXTENSIONS OFF) 5set(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>")
11set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") 11set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
12 12
13# Set the target architecture. VSCode doesn't seem to set this by default.
13add_compile_definitions(-D_AMD64_=1) 14add_compile_definitions(-D_AMD64_=1)
14 15
15project(dx12c) 16project(dx12c)
16 17
17# External dependencies. 18# External dependencies.
18add_subdirectory(contrib/DirectX-Headers) 19# TODO: These could be moved to dxg/app respectively.
20add_subdirectory(contrib/DirectX-Headers-1.618.2)
19add_subdirectory(contrib/glfw) 21add_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)
27add_subdirectory(hello) 29add_subdirectory(hello)
30add_subdirectory(triangle)