-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathCMakeLists.txt
45 lines (38 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
33
34
35
36
37
38
39
40
41
42
43
44
45
set(TARGET MethaneShadowCube)
include(MethaneApplications)
include(MethaneShaders)
include(MethaneResources)
add_methane_application(
TARGET ${TARGET}
NAME "Methane Shadow Cube"
DESCRIPTION "Tutorial demonstrating shadow and final render passes done with Methane Kit."
INSTALL_DIR "Apps"
SOURCES
ShadowCubeApp.h
ShadowCubeApp.cpp
Shaders/ShadowCubeUniforms.h
)
set(TEXTURES_DIR ${RESOURCES_DIR}/Textures)
list(APPEND TEXTURES
${TEXTURES_DIR}/MethaneBubbles.jpg
${TEXTURES_DIR}/MarbleWhite.jpg
)
add_methane_embedded_textures(${TARGET} "${TEXTURES_DIR}" "${TEXTURES}")
add_methane_shaders_source(
TARGET ${TARGET}
SOURCE Shaders/ShadowCube.hlsl
VERSION 6_0
TYPES
frag=CubePS:ENABLE_SHADOWS,ENABLE_TEXTURING
vert=CubeVS:ENABLE_SHADOWS,ENABLE_TEXTURING
vert=CubeVS:ENABLE_TEXTURING
)
add_methane_shaders_library(${TARGET})
target_link_libraries(${TARGET}
PRIVATE
MethaneAppsCommon
)
set_target_properties(${TARGET}
PROPERTIES
FOLDER Apps
)