forked from TheSpydog/SDL_gpu_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (43 loc) · 1.22 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
46
cmake_minimum_required(VERSION 3.10)
project(SDL_gpu_examples)
find_package(SDL3 REQUIRED)
add_executable(SDL_gpu_examples
Examples/main.c
Examples/Common.h
stb_image.h
Examples/Common.c
Examples/ClearScreen.c
Examples/ClearScreenMultiWindow.c
Examples/BasicTriangle.c
Examples/BasicVertexBuffer.c
Examples/CullMode.c
Examples/BasicStencil.c
Examples/InstancedIndexed.c
Examples/TexturedQuad.c
Examples/ComputeSampler.c
Examples/TexturedAnimatedQuad.c
Examples/Clear3DSlice.c
Examples/BasicCompute.c
Examples/ComputeUniforms.c
Examples/ToneMapping.c
Examples/CustomSampling.c
Examples/DrawIndirect.c
Examples/ComputeSpriteBatch.c
Examples/CopyAndReadback.c
Examples/CopyConsistency.c
Examples/Texture2DArray.c
Examples/TriangleMSAA.c
Examples/Cubemap.c
Examples/WindowResize.c
Examples/Blit2DArray.c
Examples/BlitCube.c
Examples/BlitMirror.c
Examples/GenerateMipmaps.c
Examples/ASTC.c
)
target_link_libraries(SDL_gpu_examples
SDL3::SDL3
)
add_custom_command(TARGET SDL_gpu_examples POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/Content $<TARGET_FILE_DIR:SDL_gpu_examples>/Content
)