[Piglit] [PATCH 1/2] Add missing include paths
Ian Romanick
idr at freedesktop.org
Mon Jan 9 12:20:08 PST 2012
From: Ian Romanick <ian.d.romanick at intel.com>
This prevents build issues when EGL/egl.h or GLES/gl.h are not
installed in the "usual" places.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glut_egl/CMakeLists.no_api.txt | 5 +++++
.../CMakeLists.gles1.txt | 2 ++
.../CMakeLists.gles1.txt | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/glut_egl/CMakeLists.no_api.txt b/src/glut_egl/CMakeLists.no_api.txt
index b41d9d5..f059743 100644
--- a/src/glut_egl/CMakeLists.no_api.txt
+++ b/src/glut_egl/CMakeLists.no_api.txt
@@ -1,3 +1,8 @@
+include_directories(
+ ${GLEXT_INCLUDE_DIR}
+ ${OPENGL_INCLUDE_PATH}
+ )
+
link_libraries(${OPENGL_egl_LIBRARY})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
diff --git a/tests/spec/oes_compressed_etc1_rgb8_texture/CMakeLists.gles1.txt b/tests/spec/oes_compressed_etc1_rgb8_texture/CMakeLists.gles1.txt
index 36802cd..da31a40 100644
--- a/tests/spec/oes_compressed_etc1_rgb8_texture/CMakeLists.gles1.txt
+++ b/tests/spec/oes_compressed_etc1_rgb8_texture/CMakeLists.gles1.txt
@@ -1,4 +1,6 @@
include_directories(
+ ${GLEXT_INCLUDE_DIR}
+ ${OPENGL_INCLUDE_PATH}
${piglit_SOURCE_DIR}/tests/util
)
diff --git a/tests/spec/oes_compressed_paletted_texture/CMakeLists.gles1.txt b/tests/spec/oes_compressed_paletted_texture/CMakeLists.gles1.txt
index c4829b7..eed856b 100644
--- a/tests/spec/oes_compressed_paletted_texture/CMakeLists.gles1.txt
+++ b/tests/spec/oes_compressed_paletted_texture/CMakeLists.gles1.txt
@@ -1,4 +1,5 @@
include_directories(
+ ${GLEXT_INCLUDE_DIR}
${OPENGL_INCLUDE_PATH}
${piglit_SOURCE_DIR}/tests/util
)
--
1.7.6.4
More information about the Piglit
mailing list