Upgrade CMake build process (shared and static library, clan, test, doc, reference...