-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
32 lines (25 loc) · 1.03 KB
/
CMakeLists.txt
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
28
29
30
31
32
cmake_minimum_required(VERSION 3.8.0)
# Use solution folders to organize projects
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Make sure DLL and EXE targets go to the same directory.
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) # Output directory for static lib (.LIB)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Output directory for shared lib (.DLL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Output directory for executables (.EXE)
cmake_policy(SET CMP0079 NEW)
project(LearningDirectX12 LANGUAGES CXX)
# Libraries
add_subdirectory(DX12Library)
add_subdirectory(Framework)
add_subdirectory(RenderGraph)
# Demos
add_subdirectory(Demos/AnimationsDemo)
add_subdirectory(Demos/DeferredLightingDemo)
add_subdirectory(Demos/LightingDemo)
add_subdirectory(Demos/ToonDemo)
add_subdirectory(Demos/GrassDemo)
add_subdirectory(Demos/RenderGraphDemo)
add_subdirectory(Demos/MeshletsDemo)
# Set the startup project.
set_directory_properties(PROPERTIES
VS_STARTUP_PROJECT LightingDemo
)