summaryrefslogtreecommitdiff
path: root/src/slang/CMakeLists.txt
blob: e5d17fd6ad04cc0f79879e1a088761ec23840911 (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
include_directories (
	${CMAKE_SOURCE_DIR}/src/util
	${GLEXT_INCLUDE_DIR}
	${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 slang)

set (targets
	cltest
	sotest
	vstest
)

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

install (FILES cltest.txt vstest.txt DESTINATION ${subdir})