X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=CMakeLists.txt;h=10961587b04c6fd91f4f3bc7348923e6a0be0a33;hb=cfb133d5f5caa1eeecebe51a2a085b0df1774eb4;hp=553d5c83a7f6ffd6685d5612709b8fef1e051429;hpb=f4784daf43f081c1a3df5a82efdc9d23995838e8;p=apitrace-tests diff --git a/CMakeLists.txt b/CMakeLists.txt index 553d5c8..1096158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ find_package (GLEW) if (WIN32) find_package (DirectX) -else () +elseif (PKG_CONFIG_FOUND) pkg_check_modules (EGL egl) pkg_check_modules (GLESV1 glesv1_cm) pkg_check_modules (GLESV2 glesv2) @@ -90,3 +90,17 @@ enable_testing() add_subdirectory (apps) add_subdirectory (traces) +# FIXME: The tests in the cli directory are intended to be high-level +# tests of the apitrace command-line interface which would ideally be +# portable across all platforms. However, these tests all rely on +# doing image comparisons and the current implementation of the +# "apitrace dump-images" command relies on direct invocation of the +# glretrace command. +# +# Someday, we should have more unified commands for replaying traces, +# dumping images, etc. At that point these cli tests should be usable +# with all targets so that we can drop the "if (OPENGL_FOUND)" +# condition here. +if (OPENGL_FOUND) + add_subdirectory (cli) +endif ()