-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
39 lines (30 loc) · 1.18 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
33
34
35
36
37
38
39
cmake_minimum_required (VERSION 3.6)
add_subdirectory(3rd-party/DiligentCore)
add_subdirectory(3rd-party/DiligentTools)
add_subdirectory(3rd-party/DiligentFX)
add_subdirectory(3rd-party/DiligentSamples)
project(OrderIndependentTransparency CXX)
set(INCLUDE
include/OrderIndependentTransparencySample.hpp
)
set(SOURCE
source/OrderIndependentTransparencySample.cpp
)
set(SHADERS
assets/Shaders/Common.hlsli
assets/Shaders/GeometryOpaque.hlsl
assets/Shaders/GeometryResolve.hlsl
assets/Shaders/GeometryTransparent.hlsl
assets/Shaders/GraphicsPrimitives.hlsl
)
set(RENDER_STATES
assets/RenderStates/GeometryOpaque.drsn
assets/RenderStates/GeometryResolve.drsn
assets/RenderStates/GeometryTransparent.drsn
assets/RenderStates/GraphicsPrimitives.drsn
assets/RenderStates/RenderStatesLibrary.drsn
)
add_sample_app("OrderIndependentTransparency" "DiligentCommunity" "${SOURCE}" "${INCLUDE}" "${SHADERS}" "${RENDER_STATES}")
target_link_libraries(OrderIndependentTransparency PRIVATE Diligent-RenderStateNotation)
target_include_directories(OrderIndependentTransparency PRIVATE "include")
set_property(TARGET OrderIndependentTransparency PROPERTY CXX_STANDARD 20)