Merge vk-gl-cts/vulkan-cts-1.0.1 into vk-gl-cts/vulkan-cts-1.0.2
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / CMakeLists.txt
1 # dEQP-VK
2
3 add_subdirectory(api)
4 add_subdirectory(pipeline)
5 add_subdirectory(binding_model)
6 add_subdirectory(spirv_assembly)
7 add_subdirectory(shaderrender)
8 add_subdirectory(shaderexecutor)
9 add_subdirectory(memory)
10 add_subdirectory(ubo)
11 add_subdirectory(dynamic_state)
12 add_subdirectory(ssbo)
13 add_subdirectory(query_pool)
14 add_subdirectory(draw)
15 add_subdirectory(compute)
16 add_subdirectory(image)
17 add_subdirectory(wsi)
18 add_subdirectory(sparse_resources)
19 add_subdirectory(tessellation)
20 add_subdirectory(rasterization)
21 add_subdirectory(synchronization)
22 add_subdirectory(clipping)
23 add_subdirectory(fragment_ops)
24 add_subdirectory(geometry)
25 add_subdirectory(texture)
26 add_subdirectory(renderpass)
27 add_subdirectory(ycbcr)
28
29 include_directories(
30         api
31         pipeline
32         binding_model
33         spirv_assembly
34         shaderrender
35         shaderexecutor
36         memory
37         ubo
38         dynamic_state
39         ssbo
40         query_pool
41         draw
42         compute
43         image
44         wsi
45         sparse_resources
46         tessellation
47         rasterization
48         synchronization
49         clipping
50         fragment_ops
51         texture
52         geometry
53         renderpass
54         ycbcr
55         )
56
57 set(DEQP_VK_COMMON_SRCS
58         vktTestCase.cpp
59         vktTestCase.hpp
60         vktTestCaseUtil.cpp
61         vktTestCaseUtil.hpp
62         vktTestPackage.cpp
63         vktTestPackage.hpp
64         vktShaderLibrary.cpp
65         vktShaderLibrary.hpp
66         vktTestGroupUtil.cpp
67         vktTestGroupUtil.hpp
68         vktInfoTests.cpp
69         vktInfoTests.hpp
70         vktExternalMemoryUtil.cpp
71         vktExternalMemoryUtil.hpp
72         vktDrawUtil.cpp
73         vktDrawUtil.hpp
74         )
75
76 set(DEQP_VK_COMMON_LIBS
77         tcutil
78         vkutil
79         glutil
80         deqp-vk-api
81         deqp-vk-pipeline
82         deqp-vk-binding-model
83         deqp-vk-spirv-assembly
84         deqp-vk-shaderrender
85         deqp-vk-shaderexecutor
86         deqp-vk-memory
87         deqp-vk-ubo
88         deqp-vk-dynamic-state
89         deqp-vk-ssbo
90         deqp-vk-query-pool
91         deqp-vk-draw
92         deqp-vk-compute
93         deqp-vk-image
94         deqp-vk-wsi
95         deqp-vk-sparse-resources
96         deqp-vk-tessellation
97         deqp-vk-rasterization
98         deqp-vk-synchronization
99         deqp-vk-clipping
100         deqp-vk-fragment-ops
101         deqp-vk-texture
102         deqp-vk-geometry
103         deqp-vk-render-pass
104         deqp-vk-ycbcr
105         )
106
107 add_library(deqp-vk-common STATIC ${DEQP_VK_COMMON_SRCS})
108 target_link_libraries(deqp-vk-common ${DEQP_VK_COMMON_LIBS})
109 add_dependencies(deqp-vk-common deqp-vk-data)
110
111 set(DEQP_VK_SRCS        )
112 set(DEQP_VK_LIBS        deqp-vk-common)
113
114 if (DE_OS_IS_WIN32 OR DE_OS_IS_UNIX OR DE_OS_IS_OSX)
115         add_executable(vk-build-programs vktBuildPrograms.cpp)
116         target_link_libraries(vk-build-programs deqp-vk-common)
117 endif ()
118
119 if (DE_COMPILER_IS_MSC AND (DE_PTR_SIZE EQUAL 4))
120     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
121 endif ()
122
123 add_deqp_module(deqp-vk "${DEQP_VK_SRCS}" "${DEQP_VK_LIBS}" vktTestPackageEntry.cpp)
124
125 add_data_dir(deqp-vk ../../data/vulkan  vulkan)