diff options
author | Chad Versace <chad.versace@intel.com> | 2011-02-25 20:04:17 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2011-02-25 20:44:11 -0800 |
commit | 71b61a34d0789651ba92143dc2852170dd891e5e (patch) | |
tree | f7ec27d448cafbf7c4102fcca41e80b267fc8b96 /src | |
parent | 5cffc11b3dcb9572f6a06b8308881e7c18250a37 (diff) |
glut_egl: Build library glut_egl
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/glut_egl/CMakeLists.no_api.txt | 8 | ||||
-rw-r--r-- | src/glut_egl/CMakeLists.txt | 17 |
3 files changed, 10 insertions, 16 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 000000000..4fddd44c4 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(glut_egl) diff --git a/src/glut_egl/CMakeLists.no_api.txt b/src/glut_egl/CMakeLists.no_api.txt new file mode 100644 index 000000000..b41d9d5bd --- /dev/null +++ b/src/glut_egl/CMakeLists.no_api.txt @@ -0,0 +1,8 @@ +link_libraries(${OPENGL_egl_LIBRARY}) + +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + add_library (glut_egl + glut_egl.c + glut_egl_x11.c + ) +endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") diff --git a/src/glut_egl/CMakeLists.txt b/src/glut_egl/CMakeLists.txt index 72d95679c..144a306f4 100644 --- a/src/glut_egl/CMakeLists.txt +++ b/src/glut_egl/CMakeLists.txt @@ -1,16 +1 @@ -add_definitions ( -DSOURCE_DIR="${piglit_SOURCE_DIR}/" ) - -include_directories( - ${OPENGL_INCLUDE_PATH} -) - -link_libraries ( - ${OPENGL_egl_LIBRARY} -) - -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") - add_library (piglitglutegl_x11 - glut_egl.c - glut_egl_x11.c - ) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +piglit_include_target_api() |