I need to install cmake for school. I have tried using the source code but don't really understand where I should unpack it and how to add it to my path. I also tried the .dmg file but the command cmake is not recognized after I dragged it to the applications folder. I have mac osx version 10.14. I am a novice at this, any help is greatly appreciated.
MacOS – trouble installing cmake
command linemacosopen sourcepath
Related Question
- MacOS – how to launch firefox after installing it
- Adding a compiled application to $PATH. Understanding the problem
- Trying to install Ant but getting -bash: brew: command not found
- MacOS – rbenv global version of ruby vs Sierra ruby version
- MacOS – Installing Nikon Capture NX2 on 10.12 Sierra
- Should I sign open source code theself
- Adding shell script to $PATH is still not executing properly
Best Answer
For cmake the easiest way is to install the GUI from the .dmg - which you already have done.
For other users. To install the GUI mount the .dmg and then copy Cmake.app to /Applications (a link to that is in the disk)
You can run the build from the GUI which asks for the source and target paths and the type of build system to be generated.
Or you can install the command line tools. Choose from the menu in the GUI Tools->How to install for command line use. This provides instructions on what to do. These are basically telling you where the cmake executable is so that you can add that directory to your PATH
I do use the GUI as it allows easier control of where things are and which build system to generate.