summaryrefslogtreecommitdiff
path: root/tests/util/CMakeLists.txt
blob: e69127d02c383cdab1eb05d1a06785fa30b5ec10 (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
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
	    )
endif(OPENGL_egl_LIBRARY)

if(USE_WAFFLE)
	link_libraries("${WAFFLE_waffle_LIBRARY}")
endif(USE_WAFFLE)

piglit_include_target_api()