summaryrefslogtreecommitdiffstats
path: root/Graphics/CMakeLists.txt
blob: 7713f84ef8fbe6ac69e6d8360e3775583e6be302 (plain)
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
cmake_minimum_required (VERSION 3.6)

set(DLL_REL_SUFFIX _${ARCH}r)
set(DLL_DBG_SUFFIX _${ARCH}d)

add_library(Diligent-GraphicsEngineInterface INTERFACE)
target_include_directories(Diligent-GraphicsEngineInterface
INTERFACE
    GraphicsEngine/interface
)
target_link_libraries(Diligent-GraphicsEngineInterface
INTERFACE
    Diligent-Primitives
)

add_subdirectory(GraphicsAccessories)
add_subdirectory(GraphicsEngine)
add_subdirectory(ShaderTools)

if(D3D12_SUPPORTED OR VULKAN_SUPPORTED)
    add_subdirectory(GraphicsEngineNextGenBase)
endif()

if(D3D11_SUPPORTED OR D3D12_SUPPORTED)
    add_subdirectory(GraphicsEngineD3DBase)
endif()

if(D3D11_SUPPORTED)
    add_subdirectory(GraphicsEngineD3D11)
endif()

if(D3D12_SUPPORTED)
    add_subdirectory(GraphicsEngineD3D12)
endif()

if(VULKAN_SUPPORTED)
    add_subdirectory(GraphicsEngineVulkan)
endif()

if(GL_SUPPORTED OR GLES_SUPPORTED OR VULKAN_SUPPORTED)
    add_subdirectory(HLSL2GLSLConverterLib)
endif()

if(GL_SUPPORTED OR GLES_SUPPORTED)
    add_subdirectory(GraphicsEngineOpenGL)
endif()

add_subdirectory(GraphicsTools)