lib/cpp: CMakeLists.txt: check if this is the top-level project; if not don't add_subdirectory(share) or (test)