build: Add support for INSTALL_DOC_DIR and other common path flags.

Code partially copied from https://github.com/freundlich/fcppt/blob/master/CMakeModules/FcpptCMakeUtils.cmake

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>