blob: ee8b12d5492a9511c058d37ba3f0735438d8007c (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
include_directories (
${CMAKE_SOURCE_DIR}/src/util
${X11_INCLUDE_DIR}
${GLEW_INCLUDE_DIR}
)
link_directories (
${CMAKE_SOURCE_DIR}/src/util
)
link_libraries (
util
${X11_GL_LIB}
${X11_GLU_LIB}
${GLEW_glew_LIBRARY}
${X11_X11_LIB}
${X11_Xext_LIB}
)
add_library (pbutil pbutil.c)
if (BUILD_SHARED_LIBS)
install (TARGETS pbutil DESTINATION ${LIBDIR})
endif (BUILD_SHARED_LIBS)
set (subdir xdemos)
set (targets
glsync
glthreads
glxcontexts
glxdemo
glxgears
glxgears_fbconfig
glxgears_pixmap
glxheads
glxinfo
glxpbdemo
glxpixmap
glxsnoop
glxswapcontrol
manywin
msctest
multictx
offset
omlsync
opencloseopen
overlay
pbdemo
pbinfo
shape
sharedtex
sharedtex_mt
texture_from_pixmap
wincopy
# XXX: Requires xmesa.h
#xdemo
xfont
yuvrect_client
)
foreach (target ${targets})
add_executable (${subdir}_${target} ${target}.c)
set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
endforeach (target)
target_link_libraries (${subdir}_glthreads pthread)
target_link_libraries (${subdir}_glxgears_fbconfig pbutil)
target_link_libraries (${subdir}_pbdemo pbutil)
target_link_libraries (${subdir}_pbinfo pbutil)
target_link_libraries (${subdir}_sharedtex_mt pthread)
add_executable (corender corender.c ipc.c)
add_executable (xrotfontdemo xrotfontdemo.c xuserotfont.c)
install (TARGETS corender xrotfontdemo DESTINATION demos)
|