blob: 5ebbb8190acd450ddf55dca7b78f4cb8905335a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
add_definitions(-DSOURCE_DIR="${piglit_SOURCE_DIR}/")
include_directories(
${GLEXT_INCLUDE_DIR}
${OPENGL_INCLUDE_PATH}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
link_libraries(${X11_X11_LIB})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(UTIL_SOURCES
fdo-bitmap.c
piglit-util.c
piglit-util-enum.c
shader-load.c
piglit-framework.c
piglit-framework-fbo.c
rgb9e5.c
)
if(OPENGL_egl_LIBRARY)
set(UTIL_SOURCES
${UTIL_SOURCES}
piglit-util-egl.c
)
link_libraries(${OPENGL_egl_LIBRARY})
endif(OPENGL_egl_LIBRARY)
if(USE_WAFFLE)
link_libraries("${WAFFLE_waffle_LIBRARY}")
endif(USE_WAFFLE)
piglit_include_target_api()
|