Read version from CMakeLists.txt instead of using configure for compatibility with ReadTheDocs.