summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-02-07 11:04:26 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2014-11-03 14:49:01 -0800
commit2676920293b56b4adbf6d51f26b031cf99ec733b (patch)
treec7b0cf59e64f5bb8730fb6d03e4fe66e6ff121a1 /CMakeLists.txt
parent2291e921e3beb4b2d4c355cc3fa5262121ecefdb (diff)
gbm: use libcaca to display results in non-auto mode
If GBM is enabled, attempt to locate libcaca too. If the test was not run with -auto, then use libcaca to draw a text version of the test's results to the console. v2 (Ben): Rebase Per Ken's comment the libcaca API may change at v1.0, but it's still not there are 8 months. I propose we push this, and worry about libcaca breakage later. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> (v1) Acked-by: Kenneth Graunke <kenneth@whitecape.org> Cc: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6c48bcb3..4c187e30b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -350,6 +350,14 @@ if(PIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD)
add_definitions(-DPIGLIT_HAS_POSIX_TIMER_NOTIFY_THREAD)
endif()
+if(GBM_FOUND)
+FIND_LIBRARY(HAVE_LIBCACA NAMES caca)
+if(HAVE_LIBCACA)
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} caca)
+ add_definitions(-DPIGLIT_HAS_LIBCACA)
+endif(HAVE_LIBCACA)
+endif(GBM_FOUND)
+
if(PIGLIT_USE_WAFFLE AND ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
pkg_check_modules(EGL egl)
endif()