summaryrefslogtreecommitdiff
path: root/src/perf/CMakeLists.txt
blob: a3754ed6ae56db5c6c12f8fa8530b56ea83e83e2 (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
37
include_directories (
	${mesademos_SOURCE_DIR}/src/util
	${OPENGL_INCLUDE_PATH}
	${GLUT_INCLUDE_DIR}
	${GLEW_INCLUDE_DIR}
)

link_directories (
	${mesademos_SOURCE_DIR}/src/util
)

link_libraries (
	util
	${OPENGL_gl_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${GLUT_glut_LIBRARY}
	${GLEW_glew_LIBRARY}
)

set (targets
	copytex
	drawoverhead
	fbobind
	fill
	genmipmap
	readpixels
	swapbuffers
	teximage
	vbo
	vertexrate
)

foreach (target ${targets})
	add_executable (${target} ${target}.c common.c glmain.c)
endforeach (target)

install (TARGETS ${targets} DESTINATION perf)