From 6c8ae19be66cee247980a48e736a4e05d14de179 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Dec 2025 16:39:36 -0800 Subject: Immediate-mode renderer, triangle demo, shader compilation in cmake, Agility SDK --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 82d9df9..58024cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) -set(CMAKE_C_STANDARD 17) +set(CMAKE_C_STANDARD 23) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS OFF) @@ -10,12 +10,14 @@ set(CMAKE_C_EXTENSIONS OFF) #set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") +# Set the target architecture. VSCode doesn't seem to set this by default. add_compile_definitions(-D_AMD64_=1) project(dx12c) # External dependencies. -add_subdirectory(contrib/DirectX-Headers) +# TODO: These could be moved to dxg/app respectively. +add_subdirectory(contrib/DirectX-Headers-1.618.2) add_subdirectory(contrib/glfw) # Common libraries. @@ -25,3 +27,4 @@ add_subdirectory(app) # Applications. #add_subdirectory(game) add_subdirectory(hello) +add_subdirectory(triangle) -- cgit v1.2.3