CMake is an open-source, cross-platform family of tools designed to build, test and package software. See documentation
- The Core Planners: [email protected]
Binary package
Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.
To add core/cmake as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/cmake)
pkg_deps=(core/cmake)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/cmake --binlink
will add the following binaries to the PATH:
- /bin/cmake
- /bin/ctest
- /bin/cpack
For example:
$ hab pkg install core/cmake --binlink
» Installing core/cmake
☁ Determining latest version of core/cmake in the 'stable' channel
→ Found newer installed version (core/cmake/3.17.2/20200603132255) than remote version (core/cmake/3.17.2/20200601115812)
→ Using core/cmake/3.17.2/20200603132255
★ Install of core/cmake/3.17.2/20200603132255 complete with 0 new packages installed.
» Binlinking cmake from core/cmake/3.17.2/20200603132255 into /bin
★ Binlinked cmake from core/cmake/3.17.2/20200603132255 to /bin/cmake
» Binlinking ctest from core/cmake/3.17.2/20200603132255 into /bin
★ Binlinked ctest from core/cmake/3.17.2/20200603132255 to /bin/ctest
» Binlinking cpack from core/cmake/3.17.2/20200603132255 into /bin
★ Binlinked cpack from core/cmake/3.17.2/20200603132255 to /bin/cpack
You can now use the binary as normal. For example:
/bin/cmake --help
or cmake --help
$ cmake --help
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
cmake [options] -S <path-to-source> -B <path-to-build>
...
...