summaryrefslogtreecommitdiff
path: root/src/fp/CMakeLists.txt
blob: 658ab1c35f52cd766d727a5938dde25a6f2f5c15 (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 (
	${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
	fp-tri
	tri-depth
	tri-depth2
	tri-depthwrite
	tri-depthwrite2
	tri-param
	tri-tex
	point-position
)

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

install (TARGETS ${targets} DESTINATION fp)

file (GLOB data *.txt)

install (FILES ${data} DESTINATION fp)