Merge vk-gl-cts/opengl-cts-4.6.0 into vk-gl-cts/master
[platform/upstream/VK-GL-CTS.git] / external / openglcts / modules / common / CMakeLists.txt
1 # Common OpenGL CTS Test Code
2
3 if (DEQP_SUPPORT_WGL)
4         include_directories(${PROJECT_SOURCE_DIR}/framework/platform/win32)
5         add_definitions(-DGLCTS_SUPPORT_WGL=1)
6 endif ()
7
8 include_directories(
9         ${PROJECT_SOURCE_DIR}/modules/glshared
10         )
11
12 set(GLCTS_COMMON_SRCS
13         glcBlendEquationAdvancedTests.cpp
14         glcBlendEquationAdvancedTests.hpp
15         glcConfigList.hpp
16         glcConfigList.cpp
17         glcConfigListCase.cpp
18         glcConfigListCase.hpp
19         glcConfigListEGL.hpp
20         glcConfigListEGL.cpp
21         glcConfigListWGL.hpp
22         glcConfigListWGL.cpp
23         glcConfigPackage.cpp
24         glcConfigPackage.hpp
25         glcContext.cpp
26         glcContext.hpp
27         glcContextFlagsTests.cpp
28         glcContextFlagsTests.hpp
29         glcExposedExtensionsTests.cpp
30         glcExposedExtensionsTests.hpp
31         glcFragDepthTests.cpp
32         glcFragDepthTests.hpp
33         glcInfoTests.cpp
34         glcInfoTests.hpp
35         glcMultipleContextsTests.cpp
36         glcMultipleContextsTests.hpp
37         glcNoErrorTests.cpp
38         glcNoErrorTests.hpp
39         glcRobustnessTests.cpp
40         glcRobustnessTests.hpp
41         glcPolygonOffsetClampTests.cpp
42         glcPolygonOffsetClampTests.hpp
43         glcParallelShaderCompileTests.cpp
44         glcParallelShaderCompileTests.hpp
45         glcRobustBufferAccessBehaviorTests.cpp
46         glcRobustBufferAccessBehaviorTests.hpp
47         glcSeparableProgramsTransformFeedbackTests.cpp
48         glcSeparableProgramsTransformFeedbackTests.hpp
49         glcShaderConstExprTests.hpp
50         glcShaderConstExprTests.cpp
51         glcShaderGroupVoteTests.cpp
52         glcShaderGroupVoteTests.hpp
53         glcShaderIndexingTests.cpp
54         glcShaderIndexingTests.hpp
55         glcShaderIntegerMixTests.cpp
56         glcShaderIntegerMixTests.hpp
57         glcShaderLibrary.cpp
58         glcShaderLibrary.hpp
59         glcShaderLibraryCase.cpp
60         glcShaderLibraryCase.hpp
61         glcShaderLoopTests.cpp
62         glcShaderLoopTests.hpp
63         glcShaderNegativeTests.hpp
64         glcShaderNegativeTests.cpp
65         glcShaderMacroTests.cpp
66         glcShaderMacroTests.hpp
67         glcShaderMultisampleInterpolationTests.cpp
68         glcShaderMultisampleInterpolationTests.hpp
69         glcShaderRenderCase.cpp
70         glcShaderRenderCase.hpp
71         glcShaderStructTests.cpp
72         glcShaderStructTests.hpp
73         glcShaderSwitchTests.cpp
74         glcShaderSwitchTests.hpp
75         glcSampleVariablesTests.cpp
76         glcSampleVariablesTests.hpp
77         glcTestCase.cpp
78         glcTestCase.hpp
79         glcTestCaseWrapper.cpp
80         glcTestCaseWrapper.hpp
81         glcTestPackage.cpp
82         glcTestPackage.hpp
83         glcTextureFilterAnisotropicTests.cpp
84         glcTextureFilterAnisotropicTests.hpp
85         glcTextureRepeatModeTests.cpp
86         glcTextureRepeatModeTests.hpp
87         glcUniformBlockCase.cpp
88         glcUniformBlockCase.hpp
89         glcUniformBlockTests.cpp
90         glcUniformBlockTests.hpp
91         glcViewportArrayTests.cpp
92         glcViewportArrayTests.hpp
93         glcTestSubcase.cpp
94         glcTestSubcase.hpp
95         glcExtTokens.cpp
96         glcExtTokens.hpp
97         glcLimitTest.inl
98         glcLimitTest.hpp
99         glcWaiver.hpp
100         )
101
102 set(GLCTS_COMMON_LIBS
103         glutil
104         tcutil
105         eglutil
106         )
107
108 add_library(glcts-common STATIC ${GLCTS_COMMON_SRCS})
109 target_link_libraries(glcts-common ${GLCTS_COMMON_LIBS})
110
111 set(GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS
112         glcNoDefaultContextPackage.cpp
113         glcNoDefaultContextPackage.hpp
114         )
115 add_library(glcts-common-nocontext-package STATIC ${GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS})