Commit f03240c7 authored by Chad Versace's avatar Chad Versace

cmake: Clean up gles{1,2}/CMakeLists.txt

Now that there are options to control building the GLES1 and GLES2 tests,
there is no need for the 'if' guard in these CMakeLists.

Remove the unneeded 'if' guards, and hence a level of indentation.
Reviewed-by: default avatarPauli Nieminen <pauli.nieminen@intel.com>
Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
parent 8663c199
set(piglit_target_api "gles1")
if(OPENGL_gles1_LIBRARY AND OPENGL_egl_LIBRARY)
add_definitions(
-DUSE_OPENGL_ES1
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
endif(OPENGL_gles1_LIBRARY AND OPENGL_egl_LIBRARY)
add_definitions(
-DUSE_OPENGL_ES1
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
set(piglit_target_api "gles2")
if(OPENGL_gles2_LIBRARY AND OPENGL_egl_LIBRARY)
add_definitions(
-DUSE_OPENGL_ES2
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
endif(OPENGL_gles2_LIBRARY AND OPENGL_egl_LIBRARY)
add_definitions(
-DUSE_OPENGL_ES2
-DUSE_EGLUT
)
add_subdirectory(${piglit_SOURCE_DIR}/tests
${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment