Add CTS_ARB_gl_spirv test implementation
[platform/upstream/VK-GL-CTS.git] / external / openglcts / modules / gl / CMakeLists.txt
1 # GL-CTS.es2
2
3 set(GLCTS_GL_SRCS
4         gl3cClipDistance.cpp
5         gl3cClipDistance.hpp
6         gl3cCommonBugsTests.cpp
7         gl3cCommonBugsTests.hpp
8         gl3cTestPackages.cpp
9         gl3cTestPackages.hpp
10         gl3cCullDistanceTests.cpp
11         gl3cCullDistanceTests.hpp
12         gl3cGPUShader5Tests.cpp
13         gl3cGPUShader5Tests.hpp
14         gl3cGLSLnoperspectiveTests.cpp
15         gl3cGLSLnoperspectiveTests.hpp
16         gl3cTextureSizePromotion.cpp
17         gl3cTextureSizePromotion.hpp
18         gl3cTextureSwizzleTests.cpp
19         gl3cTextureSwizzleTests.hpp
20         gl3cTransformFeedbackTests.cpp
21         gl3cTransformFeedbackTests.hpp
22         gl3cTransformFeedbackOverflowQueryTests.cpp
23         gl3cTransformFeedbackOverflowQueryTests.hpp
24         gl4cTestPackages.cpp
25         gl4cTestPackages.hpp
26         gl4cBufferStorageTests.cpp
27         gl4cBufferStorageTests.hpp
28 #       gl4cContextFlushControlTests.cpp
29 #       gl4cContextFlushControlTests.hpp
30         gl4cCopyImageTests.cpp
31         gl4cCopyImageTests.hpp
32         gl4cDirectStateAccessBuffersTests.cpp
33         gl4cDirectStateAccessFramebuffersAndRenderbuffersTests.cpp
34         gl4cDirectStateAccessQueriesTests.cpp
35         gl4cDirectStateAccessProgramPipelinesTests.cpp
36         gl4cDirectStateAccessSamplersTests.cpp
37         gl4cDirectStateAccessVertexArraysTests.cpp
38         gl4cDirectStateAccessXFBTests.cpp
39         gl4cDirectStateAccessTexturesTests.cpp
40         gl4cDirectStateAccessTests.cpp
41         gl4cDirectStateAccessTests.hpp
42         gl4cEnhancedLayoutsTests.cpp
43         gl4cEnhancedLayoutsTests.hpp
44         gl4cGetTextureSubImageTests.cpp
45         gl4cGetTextureSubImageTests.hpp
46         gl4cES31CompatibilitySampleVariablesTests.cpp
47         gl4cES31CompatibilityShaderImageLoadStoreTests.cpp
48         gl4cES31CompatibilityShaderStorageBufferObjectTests.cpp
49         gl4cES31CompatibilityTests.cpp
50         gl4cES31CompatibilityTests.hpp
51         gl4cKHRDebugTests.cpp
52         gl4cKHRDebugTests.hpp
53         gl4cMapBufferAlignmentTests.cpp
54         gl4cMapBufferAlignmentTests.hpp
55         gl4cMultiBindTests.cpp
56         gl4cMultiBindTests.hpp
57         gl4cShaderAtomicCountersTests.cpp
58         gl4cShaderAtomicCountersTests.hpp
59         gl4cShaderDrawParametersTests.cpp
60         gl4cShaderDrawParametersTests.hpp
61         gl4cTextureGatherTests.hpp
62         gl4cTextureGatherTests.cpp
63         gl4cProgramInterfaceQueryTests.hpp
64         gl4cProgramInterfaceQueryTests.cpp
65         gl4cComputeShaderTests.cpp
66         gl4cComputeShaderTests.hpp
67         gl4cConditionalRenderInvertedTests.cpp
68         gl4cConditionalRenderInvertedTests.hpp
69         gl4cGPUShaderFP64Tests.cpp
70         gl4cGPUShaderFP64Tests.hpp
71         gl4cIncompleteTextureAccessTests.cpp
72         gl4cIncompleteTextureAccessTests.hpp
73         gl4cShaderAtomicCounterOpsTests.cpp
74         gl4cShaderAtomicCounterOpsTests.hpp
75         gl4cShaderBallotTests.cpp
76         gl4cShaderBallotTests.hpp
77         gl4cShaderStorageBufferObjectTests.cpp
78         gl4cShaderStorageBufferObjectTests.hpp
79         gl4cShaderSubroutineTests.cpp
80         gl4cShaderSubroutineTests.hpp
81         gl4cShaderImageLoadStoreTests.cpp
82         gl4cShaderImageLoadStoreTests.hpp
83         gl4cShaderViewportLayerArrayTests.cpp
84         gl4cShaderViewportLayerArrayTests.hpp
85         gl4cShadingLanguage420PackTests.cpp
86         gl4cShadingLanguage420PackTests.hpp
87         gl4cStencilTexturingTests.cpp
88         gl4cStencilTexturingTests.hpp
89         gl4cVertexAttrib64BitTest.cpp
90         gl4cVertexAttrib64BitTest.hpp
91         gl4cVertexAttribBindingTests.cpp
92         gl4cVertexAttribBindingTests.hpp
93         gl4cShaderImageSizeTests.hpp
94         gl4cShaderImageSizeTests.cpp
95         gl4cSyncTests.cpp
96         gl4cSyncTests.hpp
97         gl4cTextureFilterMinmaxTests.cpp
98         gl4cTextureFilterMinmaxTests.hpp
99         gl4cTextureViewTests.cpp
100         gl4cTextureViewTests.hpp
101         gl4cTextureBarrierTests.cpp
102         gl4cTextureBarrierTests.hpp
103         gl4cClipControlTests.cpp
104         gl4cClipControlTests.hpp
105         gl4cShaderTextureImageSamplesTests.cpp
106         gl4cShaderTextureImageSamplesTests.hpp
107         gl4cPipelineStatisticsQueryTests.cpp
108         gl4cPipelineStatisticsQueryTests.hpp
109         gl4cSparseBufferTests.cpp
110         gl4cSparseBufferTests.hpp
111         gl4cSparseTextureTests.cpp
112         gl4cSparseTextureTests.hpp
113         gl4cSparseTexture2Tests.cpp
114         gl4cSparseTexture2Tests.hpp
115         gl4cSparseTextureClampTests.cpp
116         gl4cSparseTextureClampTests.hpp
117         gl4cSpirvExtensionsTests.cpp
118         gl4cSpirvExtensionsTests.hpp
119         gl4cPostDepthCoverageTests.cpp
120         gl4cPostDepthCoverageTests.hpp
121         gl4cIndirectParametersTests.cpp
122         gl4cIndirectParametersTests.hpp
123         gl4cLimitsTests.cpp
124         gl4cLimitsTests.hpp
125         gl4cGlSpirvTests.cpp
126         gl4cGlSpirvTests.hpp
127         )
128
129 set(GLCTS_GL_LIBS
130         glcts-common
131         glutil
132         tcutil
133         )
134
135 # Add glslang
136 if (DEQP_HAVE_GLSLANG)
137         include_directories(${GLSLANG_INCLUDE_PATH})
138         add_definitions(-DDEQP_HAVE_GLSLANG=1)
139
140         # \note Code interfacing with glslang needs to include third-party headers
141         #       that cause all sorts of warnings to appear.
142         if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG)
143                 set_source_files_properties(
144                         FILES gl4cGlSpirvTests.cpp
145                         PROPERTIES COMPILE_FLAGS "${DE_3RD_PARTY_CXX_FLAGS} -std=c++11")
146         endif ()
147
148         set(GLCTS_GL_LIBS ${GLCTS_GL_LIBS} ${GLSLANG_LIBRARY})
149 endif ()
150
151 # Add spirv-tools
152 if(DEQP_HAVE_SPIRV_TOOLS)
153         include_directories(${spirv-tools_SOURCE_DIR}/include)
154         include_directories(${spirv-tools_SOURCE_DIR}/external/include)
155
156         add_definitions(-DDEQP_HAVE_SPIRV_TOOLS=1)
157         set(GLCTS_GL_LIBS ${GLCTS_GL_LIBS} SPIRV-Tools)
158 endif()
159
160 if (DEQP_GTF_AVAILABLE)
161         list(APPEND GLCTS_GL_LIBS glcts-gtf)
162 endif ()
163
164 add_library(glcts-gl STATIC ${GLCTS_GL_SRCS})
165 target_link_libraries(glcts-gl ${GLCTS_GL_LIBS})