~ctwm/ctwm/trunk

410.1.11 by Matthew Fuller
Break out the install bits into their own file.
1
#
2
# Define the install process
3
#
4
5
# Some bits we always install; the binary, the default config, and our
6
# CHANGES file.
7
install(TARGETS ctwm
8
	DESTINATION ${BINDIR}
9
)
10
install(FILES system.ctwmrc
11
	DESTINATION ${EXAMPLEDIR}
12
)
13
install(FILES README.md CHANGES.md
14
	DESTINATION ${DOCDIR}
15
)
16
17
18
# If we's using XPM (really, when are we not?), install the pixmaps.
19
if(USE_XPM)
20
	install(DIRECTORY xpm/
21
		DESTINATION ${PIXMAPDIR}
22
		FILES_MATCHING PATTERN "*.xpm"
23
	)
24
endif(USE_XPM)
25
26
27
#
28
# Install manual bits, assuming we have them.
29
#
30
31
# If we don't have the manpage, that's pretty exceptional, so give a
32
# warning about it.
33
if(NOT HAS_MAN)
685.1.4 by Matthew Fuller
Switch to string(CONCAT) now that we have it here.
34
	string(CONCAT NOMAN
35
		"message(WARNING \"No manpage to install: recheck config "
36
		"if this is unexpected.\")"
37
		)
38
	install(CODE ${NOMAN})
410.1.11 by Matthew Fuller
Break out the install bits into their own file.
39
else()
40
	install(FILES ${INSTMAN}
41
		DESTINATION ${MAN1PATH}
42
	)
43
endif(NOT HAS_MAN)
44
45
# ATM, the HTML manual is more optionalish
46
if(INSTHTML)
47
	install(FILES ${INSTHTML}
48
		DESTINATION ${DOCDIR}
49
	)
50
endif(INSTHTML)