1# 2# Define the install process 3# 4 5# Some bits we always install; the binary, the default config, and our 6# CHANGES file. 7install(TARGETS ctwm 8 DESTINATION ${BINDIR} 9) 10install(FILES system.ctwmrc 11 DESTINATION ${EXAMPLEDIR} 12) 13install(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. 19if(USE_XPM) 20 install(DIRECTORY xpm/ 21 DESTINATION ${PIXMAPDIR} 22 FILES_MATCHING PATTERN "*.xpm" 23 ) 24endif(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. 33if(NOT HAS_MAN) 34 string(CONCAT NOMAN 35 "message(WARNING \"No manpage to install: recheck config " 36 "if this is unexpected.\")" 37 ) 38 install(CODE ${NOMAN}) 39else() 40 install(FILES ${INSTMAN} 41 DESTINATION ${MAN1PATH} 42 ) 43endif(NOT HAS_MAN) 44 45# ATM, the HTML manual is more optionalish 46if(INSTHTML) 47 install(FILES ${INSTHTML} 48 DESTINATION ${DOCDIR} 49 ) 50endif(INSTHTML) 51