blob: 748b5e88934fb06078e7775e44741eaf01cfe4a8 [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()
Courtney Goeltzenleuchter17223602014-10-29 15:59:49 -06008if(NOT EXISTS /usr/include/png.h)
9 message(FATAL_ERROR "Necessary png12-dev headers cannot be found: sudo apt-get install png12-dev")
10endif()
Courtney Goeltzenleuchter4825f6a2014-10-28 10:27:47 -060011
Courtney Goeltzenleuchter3f2606d2014-10-13 17:51:58 -060012
13include_directories (
14 ${XCB_INCLUDE_DIRS}
15 "${PROJECT_SOURCE_DIR}/icd/common"
16 )
17
18link_directories(${XCB_LIBRARY_DIRS})
Courtney Goeltzenleuchter17223602014-10-29 15:59:49 -060019link_libraries(${XCB_LIBRARIES} XGL png m)
Courtney Goeltzenleuchter3f2606d2014-10-13 17:51:58 -060020
21add_executable(tri tri.c)
22target_link_libraries(tri)
Courtney Goeltzenleuchter4e8246e2014-10-23 13:16:59 -060023
24add_executable(cube cube.c)
25target_link_libraries(cube)