diff options
| author | Chia-I Wu <olv@lunarg.com> | 2015-01-10 23:16:41 +0800 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-04 17:58:05 -0700 |
| commit | d3d8a37543b1c62de652bd3dd7b8e46fddb36ca8 (patch) | |
| tree | 9214ec1cf1a14c29f7b033c219840b5a4033f6db | |
| parent | de5c77c33f82cac4b62272b835ab89cc59e0ed4a (diff) | |
| download | usermoji-d3d8a37543b1c62de652bd3dd7b8e46fddb36ca8.tar.xz | |
cmake: use find_package() for XCB
| -rw-r--r-- | demos/CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index 582e8f2b..98c611d4 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -1,7 +1,5 @@ -pkg_check_modules(XCB REQUIRED xcb) -if (NOT XCB_FOUND) - message(FATAL_ERROR "xcb not found") -endif() +find_package(XCB REQUIRED) + if(NOT EXISTS /usr/include/glm/glm.hpp) message(FATAL_ERROR "Necessary libglm-dev headers cannot be found: sudo apt-get install libglm-dev") endif() @@ -33,7 +31,6 @@ include_directories ( "${PROJECT_SOURCE_DIR}/icd/common" ) -link_directories(${XCB_LIBRARY_DIRS}) link_libraries(${XCB_LIBRARIES} XGL png m) add_executable(xglinfo xglinfo.c) |
