cmake is installed part of the pre-requisit:
sudo apt-get install libnova-dev libcfitsio3-dev libusb-1.0-0-dev zlib1g-dev libgsl0-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev kdesudo
And do not not copy files around, just follow the instruction.
Make sure the procedure to build and install Indi work, then edit the file you want and run "make install" again, this compile only the modified file and install the modified version ready for use.
You need to install the build-essentials package in order to have cmake available on your machine. Have a look at the links that Patrick put in his comment #40961 which explain all that.
I had to jump through some hoops to get kdesudo and libcfitsio3-dev installed. Still ran into some roadblocks and had to install other missing bits and then it worked and my mount moved in the right direction.
Now I have to do it again on the stellarmate where the driver is run from.
Ran into more roadblocks trying to do this on stellarmate. There is no kdesudo available. I downloaded kdesudo.deb package for arm64, but when I tried to install it with GDebi installer I got an error message: "Error: Wrong architecture 'arm64' -- Run dpkg --add-architecture to add it and update afterwards"
Got kdesudo installed on the rpi using the armhf version. ran the cmake command again and it failed. Made sure I had all required programs installed. Still failed. Looked over the error log and output log (made no sense to me). Decided to start over by deleting the build folder and then running the commands from creating the build directory.
Sorry to not reply to your last question but I am traveling and not always connected.
To clarify some points:
- RPi3 is 64bit hardware but most operating system are still 32bit so you need armhf packages.
- always delete the build directory if you want to start clean, otherwise cmake keep cache of previous files and not see the change in the environment.