projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5c77c
)
cmake: use find_package() for XCB
author
Chia-I Wu
<olv@lunarg.com>
Sat, 10 Jan 2015 15:16:41 +0000
(23:16 +0800)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:05 +0000
(17:58 -0700)
demos/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/demos/CMakeLists.txt
b/demos/CMakeLists.txt
index 582e8f2b4271c5c5e5e335a4a79b957c862b26cd..98c611d49f91e9e7a21322c2ee57109ed46f2ad6 100644
(file)
--- 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)