parse cmake configuration to set document root