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
|
#
# Define the install process
#
# Some bits we always install; the binary, the default config, and our
# CHANGES file.
install(TARGETS ctwm
DESTINATION ${BINDIR}
)
install(FILES system.ctwmrc
DESTINATION ${EXAMPLEDIR}
)
install(FILES README.md CHANGES.md
DESTINATION ${DOCDIR}
)
# If we's using XPM (really, when are we not?), install the pixmaps.
if(USE_XPM)
install(DIRECTORY xpm/
DESTINATION ${PIXMAPDIR}
FILES_MATCHING PATTERN "*.xpm"
)
endif(USE_XPM)
#
# Install manual bits, assuming we have them.
#
# If we don't have the manpage, that's pretty exceptional, so give a
# warning about it.
if(NOT HAS_MAN)
string(CONCAT NOMAN
"message(WARNING \"No manpage to install: recheck config "
"if this is unexpected.\")"
)
install(CODE ${NOMAN})
else()
install(FILES ${INSTMAN}
DESTINATION ${MAN1PATH}
)
endif(NOT HAS_MAN)
# ATM, the HTML manual is more optionalish
if(INSTHTML)
install(FILES ${INSTHTML}
DESTINATION ${DOCDIR}
)
endif(INSTHTML)
|