Add more structure constructor tests.
[piglit/hramrach.git] / CMakeLists.txt
blob349447a60ecae12aaa5836b8c6057c7722311580
1 cmake_minimum_required(VERSION 2.6)
3 INCLUDE (CheckCCompilerFlag)
4 INCLUDE (CheckFunctionExists)
5 INCLUDE (CheckIncludeFile)
7 project (piglit)
9 include(${CMAKE_ROOT}/Modules/FindOpenGL.cmake)
10 include(${CMAKE_ROOT}/Modules/FindTIFF.cmake)
11 include(${CMAKE_ROOT}/Modules/FindGLUT.cmake)
12 include(${CMAKE_ROOT}/Modules/FindPNG.cmake)
13 include(${CMAKE_ROOT}/Modules/FindX11.cmake)
15 CHECK_C_COMPILER_FLAG("-Wall" C_COMPILER_FLAG_WALL)
16 IF (C_COMPILER_FLAG_WALL)
17         SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
18 ENDIF (C_COMPILER_FLAG_WALL)
20 FIND_LIBRARY( GLEW_glew_LIBRARY GLEW
21         /usr/lib
24 FIND_PATH( GLEW_INCLUDE_DIR GL/glew.h
25       /usr/include/GL
28 FIND_LIBRARY(OPENGL_egl_LIBRARY
29       NAMES EGL
30       PATHS /usr/lib
33 set(EXECUTABLE_OUTPUT_PATH ${piglit_SOURCE_DIR}/bin)
34 set(LIBRARY_OUTPUT_PATH ${piglit_SOURCE_DIR}/bin)
36 add_subdirectory (tests)
38 check_function_exists(strchrnul HAVE_STRCHRNUL)
39 check_function_exists(fopen_s   HAVE_FOPEN_S)
41 check_include_file(sys/types.h HAVE_SYS_TYPES_H)
42 check_include_file(sys/stat.h  HAVE_SYS_STAT_H)
43 check_include_file(unistd.h    HAVE_UNISTD_H)
44 check_include_file(fcntl.h     HAVE_FCNTL_H)
46 configure_file(
47         "${piglit_SOURCE_DIR}/tests/util/config.h.in"
48         "${piglit_SOURCE_DIR}/tests/util/config.h"