DOC: correct CMakeLists.txt for external building