aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 82d9df9ea985036893598fd2d15d6f46f60e8427 (plain)
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 3.20)

set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

# Multi-threaded statically-linked runtime library (-MT)
# Debug results in a linker warning, I think because the DX12 libs are linked
# against a Release version of the runtime.
#set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")

add_compile_definitions(-D_AMD64_=1)

project(dx12c)

# External dependencies.
add_subdirectory(contrib/DirectX-Headers)
add_subdirectory(contrib/glfw)

# Common libraries.
add_subdirectory(dxg)
add_subdirectory(app)

# Applications.
#add_subdirectory(game)
add_subdirectory(hello)