CMake .desktop file on Ubuntu

This is probably a really simple thing to do, but on Linux (Ubuntu), if I download a CMake binary distribution from https://cmake.org/download/, is there a quick simple step to run to get the .desktop file installed and working correctly?

I see there is one included in share/applications/cmake-gui.desktop, but it’s not completely clear to me what I need to do with this. I’ve tried running desktop-file-install --dir=$HOME/.local/share/applications cmake-gui.desktop to copy it to the right spot, but it doesn’t get picked up after that.

I’ve created a cmake-gui.desktop file manually, which I can get to work, but annoyingly I can’t get the icon to show up :see_no_evil:

If anyone has a quick description of how to achieve this I’d really appreciate it. Thanks!