X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=CMakeLists.txt;h=1cd54f0da69cd31295ad939b29fb32a0e56dabe6;hp=e963be186b02c5a682ccbf0f57ec1eb70e4df546;hb=e12f45aaeec0d26c470c1cce2bc30d664c56af1e;hpb=4d4d14f3ff66f6e5074feb916b473dca1b2a187d diff --git a/CMakeLists.txt b/CMakeLists.txt index e963be1..1cd54f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 2.8) project (apitrace-tests) +include (FindPkgConfig) + # Set default built type if (NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE Debug @@ -15,13 +17,14 @@ include (CMakeParseArguments) find_package (OpenGL REQUIRED) find_package (GLUT) -find_library (GLEW_glew_LIBRARY GLEW - /usr/lib -) +find_path (GLEW_INCLUDE_DIR GL/glew.h /usr/include/GL) +find_library (GLEW_glew_LIBRARY GLEW /usr/lib) -find_path (GLEW_INCLUDE_DIR GL/glew.h - /usr/include/GL -) +if (NOT WIN32) + pkg_check_modules (EGL egl) + pkg_check_modules (GLESV1 glesv1_cm) + pkg_check_modules (GLESV2 glesv2) +endif () if (UNIX) link_libraries(m) @@ -71,4 +74,5 @@ endif () enable_testing() add_subdirectory (apps) +add_subdirectory (traces)