Courtney Goeltzenleuchter | 2220a3b | 2014-07-24 08:36:15 -0600 | [diff] [blame] | 1 | # The name of our project is "XGL". CMakeLists files in this project can |
| 2 | # refer to the root source directory of the project as ${XGL_SOURCE_DIR} and |
| 3 | # to the root binary directory of the project as ${XGL_BINARY_DIR}. |
| 4 | cmake_minimum_required (VERSION 2.6) |
| 5 | project (XGL) |
| 6 | set (XGL_VERSION_MAJOR 0) |
| 7 | set (XGL_VERSION_MINOR 1) |
Courtney Goeltzenleuchter | 1d22ed8 | 2014-08-01 13:01:47 -0600 | [diff] [blame^] | 8 | # set (CMAKE_VERBOSE_MAKEFILE 1) |
Courtney Goeltzenleuchter | 2220a3b | 2014-07-24 08:36:15 -0600 | [diff] [blame] | 9 | |
| 10 | # Header file for CMake settings |
| 11 | configure_file ( |
| 12 | "${PROJECT_SOURCE_DIR}/include/XGLConfig.h.in" |
| 13 | "${PROJECT_BINARY_DIR}/XGLConfig.h" |
| 14 | ) |
| 15 | |
| 16 | include_directories("${PROJECT_BINARY_DIR}") |
| 17 | |
| 18 | # xgl global includes |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 19 | include_directories("/usr/include/drm") |
Courtney Goeltzenleuchter | 2220a3b | 2014-07-24 08:36:15 -0600 | [diff] [blame] | 20 | include_directories("${PROJECT_SOURCE_DIR}/include") |
| 21 | |
Chia-I Wu | 763e559 | 2014-08-01 15:31:12 +0800 | [diff] [blame] | 22 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall") |
| 23 | |
Chia-I Wu | 5f72d0f | 2014-08-01 11:21:23 +0800 | [diff] [blame] | 24 | # loader: Generic XGL ICD loader |
Courtney Goeltzenleuchter | 2220a3b | 2014-07-24 08:36:15 -0600 | [diff] [blame] | 25 | # main: Device independent (DI) XGL library |
| 26 | # drivers: Device dependent (DD) XGL components |
| 27 | # tests: XGL tests |
Chia-I Wu | 5f72d0f | 2014-08-01 11:21:23 +0800 | [diff] [blame] | 28 | add_subdirectory (loader) |
Courtney Goeltzenleuchter | 2220a3b | 2014-07-24 08:36:15 -0600 | [diff] [blame] | 29 | add_subdirectory (drivers) |
| 30 | add_subdirectory (tests) |