diff options
Diffstat (limited to 'tests/glx')
-rw-r--r-- | tests/glx/CMakeLists.gl.txt | 34 | ||||
-rw-r--r-- | tests/glx/CMakeLists.txt | 33 |
2 files changed, 35 insertions, 32 deletions
diff --git a/tests/glx/CMakeLists.gl.txt b/tests/glx/CMakeLists.gl.txt new file mode 100644 index 000000000..9558f2a91 --- /dev/null +++ b/tests/glx/CMakeLists.gl.txt @@ -0,0 +1,34 @@ + +include_directories( + ${OPENGL_INCLUDE_PATH} + ${GLUT_INCLUDE_DIR} + ${piglit_SOURCE_DIR}/tests/util +) + +link_libraries ( + piglitglxutil + ${OPENGL_gl_LIBRARY} + ${OPENGL_glu_LIBRARY} + ${GLUT_glut_LIBRARY} + ${TIFF_LIBRARY} + ${X11_X11_LIB} +) + +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + add_executable (glx-shader-sharing glx-shader-sharing.c) + add_executable (glx-destroycontext-1 glx-destroycontext-1.c) + add_executable (glx-destroycontext-2 glx-destroycontext-2.c) + add_executable (glx-multithread glx-multithread.c) + add_executable (glx-make-current glx-make-current.c) + add_executable (glx-swap-event glx-swap-event.c) + add_executable (glx-make-glxdrawable-current glx-make-glxdrawable-current.c) + target_link_libraries(glx-multithread pthread X11) + add_executable (glx-swap-exchange glx-swap-exchange.c) + target_link_libraries(glx-swap-exchange X11) + add_executable (glx-tfp glx-tfp.c) + target_link_libraries(glx-tfp X11) + + add_executable (glx-visuals-stencil glx-visuals-stencil.c) +ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + +# vim: ft=cmake: diff --git a/tests/glx/CMakeLists.txt b/tests/glx/CMakeLists.txt index 18f2a2767..144a306f4 100644 --- a/tests/glx/CMakeLists.txt +++ b/tests/glx/CMakeLists.txt @@ -1,32 +1 @@ - -include_directories( - ${OPENGL_INCLUDE_PATH} - ${GLUT_INCLUDE_DIR} - ${piglit_SOURCE_DIR}/tests/util -) - -link_libraries ( - piglitglxutil - ${OPENGL_gl_LIBRARY} - ${OPENGL_glu_LIBRARY} - ${GLUT_glut_LIBRARY} - ${TIFF_LIBRARY} - ${X11_X11_LIB} -) - -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") - add_executable (glx-shader-sharing glx-shader-sharing.c) - add_executable (glx-destroycontext-1 glx-destroycontext-1.c) - add_executable (glx-destroycontext-2 glx-destroycontext-2.c) - add_executable (glx-multithread glx-multithread.c) - add_executable (glx-make-current glx-make-current.c) - add_executable (glx-swap-event glx-swap-event.c) - add_executable (glx-make-glxdrawable-current glx-make-glxdrawable-current.c) - target_link_libraries(glx-multithread pthread X11) - add_executable (glx-swap-exchange glx-swap-exchange.c) - target_link_libraries(glx-swap-exchange X11) - add_executable (glx-tfp glx-tfp.c) - target_link_libraries(glx-tfp X11) - - add_executable (glx-visuals-stencil glx-visuals-stencil.c) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +piglit_include_target_api() |