blob: 8e5838be22179d5022ddb037bccdb7b77e07ad99 [file] [log] [blame]
Courtney Goeltzenleuchter3f2606d2014-10-13 17:51:58 -06001pkg_check_modules(XCB REQUIRED xcb)
2if (NOT XCB_FOUND)
3 message(FATAL_ERROR "xcb not found")
Chia-I Wuc19795a2014-09-13 11:12:55 +08004endif()
Courtney Goeltzenleuchter4825f6a2014-10-28 10:27:47 -06005if(NOT EXISTS /usr/include/glm/glm.hpp)
6 message(FATAL_ERROR "Necessary libglm-dev headers cannot be found: sudo apt-get install libglm-dev")
7endif()
8
Courtney Goeltzenleuchter3f2606d2014-10-13 17:51:58 -06009
10include_directories (
11 ${XCB_INCLUDE_DIRS}
12 "${PROJECT_SOURCE_DIR}/icd/common"
13 )
14
15link_directories(${XCB_LIBRARY_DIRS})
Courtney Goeltzenleuchter4825f6a2014-10-28 10:27:47 -060016link_libraries(${XCB_LIBRARIES} XGL m)
Courtney Goeltzenleuchter3f2606d2014-10-13 17:51:58 -060017
18add_executable(tri tri.c)
19target_link_libraries(tri)
Courtney Goeltzenleuchter4e8246e2014-10-23 13:16:59 -060020
21add_executable(cube cube.c)
22target_link_libraries(cube)