DirectX 12 code samples.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
564 B

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)