diff options
author | marsunet <marc.sunet@amd.com> | 2021-12-21 17:04:22 -0800 |
---|---|---|
committer | marsunet <marc.sunet@amd.com> | 2021-12-21 17:04:22 -0800 |
commit | fba8184491e0b7ae6fab7ac01b4600d230dc4569 (patch) | |
tree | c13194764867a4ad8f46702356b22dccc1e56dd3 /CMakeLists.txt | |
parent | 8b1583b65d77188ef35a89e75f145f29c3e3b5d7 (diff) |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..53799c0 --- /dev/null +++ b/CMakeLists.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | cmake_minimum_required(VERSION 3.0) | ||
2 | |||
3 | project(dx12) | ||
4 | |||
5 | set(CMAKE_CXX_STANDARD 20) | ||
6 | set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
7 | |||
8 | # -MT, multi-threaded statically-linked runtime library. | ||
9 | #set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded) | ||
10 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") | ||
11 | set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd /DDEBUG") | ||
12 | |||
13 | # External dependencies. | ||
14 | add_subdirectory(contrib/DirectX-Headers) | ||
15 | add_subdirectory(contrib/glfw) | ||
16 | |||
17 | # Common libraries. | ||
18 | add_subdirectory(dxcommon) | ||
19 | add_subdirectory(dxwindow) | ||
20 | |||
21 | # Applications. | ||
22 | add_subdirectory(hello) | ||