-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (41 loc) · 1.14 KB
/
CMakeLists.txt
File metadata and controls
49 lines (41 loc) · 1.14 KB
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
46
47
48
49
set(TARGET MethaneCubeMapArray)
include(MethaneApplications)
include(MethaneShaders)
include(MethaneResources)
add_methane_application(
TARGET ${TARGET}
NAME "Methane Cube-Map Array"
DESCRIPTION "Tutorial demonstrating cube-map array texturing with Methane Kit."
INSTALL_DIR "Apps"
SOURCES
CubeMapArrayApp.h
CubeMapArrayApp.cpp
Shaders/CubeMapArrayUniforms.h
)
set(TEXTURES_DIR ${RESOURCES_DIR}/Textures)
set(TEXTURES
${TEXTURES_DIR}/SkyBox/Clouds/PositiveX.jpg
${TEXTURES_DIR}/SkyBox/Clouds/NegativeX.jpg
${TEXTURES_DIR}/SkyBox/Clouds/PositiveY.jpg
${TEXTURES_DIR}/SkyBox/Clouds/NegativeY.jpg
${TEXTURES_DIR}/SkyBox/Clouds/PositiveZ.jpg
${TEXTURES_DIR}/SkyBox/Clouds/NegativeZ.jpg
)
add_methane_embedded_textures(${TARGET} "${TEXTURES_DIR}" "${TEXTURES}")
add_methane_shaders_source(
TARGET ${TARGET}
SOURCE Shaders/CubeMapArray.hlsl
VERSION 6_0
TYPES
frag=CubePS
vert=CubeVS
)
add_methane_shaders_library(${TARGET})
target_link_libraries(${TARGET}
PRIVATE
MethaneAppsCommon
)
set_target_properties(${TARGET}
PROPERTIES
FOLDER Apps
)