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) |
| 8 | |
| 9 | # Header file for CMake settings |
| 10 | configure_file ( |
| 11 | "${PROJECT_SOURCE_DIR}/include/XGLConfig.h.in" |
| 12 | "${PROJECT_BINARY_DIR}/XGLConfig.h" |
| 13 | ) |
| 14 | |
| 15 | include_directories("${PROJECT_BINARY_DIR}") |
| 16 | |
| 17 | # xgl global includes |
| 18 | include_directories("${PROJECT_SOURCE_DIR}/include") |
| 19 | |
| 20 | # main: Device independent (DI) XGL library |
| 21 | # drivers: Device dependent (DD) XGL components |
| 22 | # tests: XGL tests |
| 23 | add_subdirectory (main) |
| 24 | add_subdirectory (drivers) |
| 25 | add_subdirectory (tests) |