Start the fold before echoing the description, so the description is shown when folded. Combine Xcode checks into one statement. Add missing '-G' argument when building sample using CMake.