[CMake] Source package without CMake dependency?

Martin Sustrik sustrik at 250bpm.com
Mon Feb 4 00:45:24 EST 2013


Hi all,

Is it possible to create a source package that wouldn't require to 
install cmake on the destination machine?

With autotools, all the build scripts are generated when building the 
package and included into the package. So, on the destination box you 
can do the following:

     tar -xzf mypackage.tar.gz
     cd mypackage
     make
     sudo make install

There's no need to install autotools itself. Is something similar 
possible with CMake/CPack? Will simply creating the build directory 
inside of the source tree help?

Martin


More information about the CMake mailing list