Build, Test, and package your software with Cmake !
CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice.

Well, we can install it by following these simple steps:

  1. Uninstall the default version provided by Ubuntu’s package manager:
    sudo apt-get purge cmake
    
  2. Go to the official CMake webpage, then download and extract the latest version. Update the version and build variables in the following command to get the desired version:
    version=3.x
    build=3
    mkdir ~/temp
    cd ~/temp
    wget https://cmake.org/files/v$version/cmake-$version.$build.tar.gz
    tar -xzvf cmake-$version.$build.tar.gz
    cd cmake-$version.$build/
    
  3. Install the extracted source by running:
    ./bootstrap
    make -j4
    sudo make install
    
  4. Test your new cmake version.
    $ cmake --version
    

    Results of cmake --version:

    cmake version 3.10.X

Here,

In 3.10.X the X represents the last part of the version that we defined as build. The build may change if cmake is updated. Just for example given below:-

    version=3.10
    build=7

That’s it.

By Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x