aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 53799c0dcfd16051488e05c55959d682f7c160bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.0)

project(dx12)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# -MT, multi-threaded statically-linked runtime library.
#set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd /DDEBUG")

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

# Common libraries.
add_subdirectory(dxcommon)
add_subdirectory(dxwindow)

# Applications.
add_subdirectory(hello)