summaryrefslogtreecommitdiff
path: root/src/perf/CMakeLists.txt
blob: 68b6875d5661e35b13956c0213eca75cd19abaad (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
38
39
include_directories (
	${CMAKE_SOURCE_DIR}/src/util
	${OPENGL_INCLUDE_PATH}
	${GLUT_INCLUDE_DIR}
	${GLEW_INCLUDE_DIR}
)

link_directories (
	${CMAKE_SOURCE_DIR}/src/util
)

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

set (subdir perf)

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

foreach (target ${targets})
	add_executable (${subdir}_${target} ${target}.c common.c glmain.c)
	set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
	install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
endforeach (target)