prezto/modules/cmake
Benjamin Chrétien 2c8ad10f2b Improve CMake module
- Add support for CMake generators
- Make install prefix optional
- Improve README
2015-11-24 00:30:49 +09:00
..
init.zsh Improve CMake module 2015-11-24 00:30:49 +09:00
README.md Improve CMake module 2015-11-24 00:30:49 +09:00

CMake

Initializes build directories for CMake.

Usage

# In the root directory of a CMake project:
$ mb
# Or with additional flags:
$ mb -DSOME_EXTRA_FLAGS="foo"

Options

# Set the install prefix (else CMake's default prefix will be used)
zstyle ':prezto:module:cmake' install-prefix '/usr'

# Set the build prefix (else '_build' will be used)
zstyle ':prezto:module:cmake' build-prefix '_build'

# Set the build profiles (else Debug and Release will be used)
zstyle ':prezto:module:cmake' profiles 'Debug' 'Release'

# Set the generator (else CMake's default generator will be used)
zstyle ':prezto:module:cmake' generator 'Unix Makefiles'

# Whether to support clang as well (default is 'yes')
zstyle ':prezto:module:cmake' support-clang 'yes'

Aliases

  • mb initialize build directories.

Authors

The authors of this module should be contacted via the issue tracker.