Documentation
¶
Overview ¶
Package cmake wraps the cmake configure/build/install workflow.
Index ¶
- type CMake
- func (c *CMake) Build(args ...string) error
- func (c *CMake) BuildType(name string)
- func (c *CMake) Configure(args ...string) error
- func (c *CMake) Define(key, value string)
- func (c *CMake) DefineBool(key string, value bool)
- func (c *CMake) Generator(name string)
- func (c *CMake) Install(args ...string) error
- func (c *CMake) OutputDir() string
- func (c *CMake) Source(dir string)
- func (c *CMake) Toolchain(path string)
- func (c *CMake) Use(root string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMake ¶
type CMake struct {
// contains filtered or unexported fields
}
CMake drives CMake-based builds.
func (*CMake) Configure ¶
Configure runs "cmake -S <source> -B <build>" with all configured options. Extra args are appended at the end.
func (*CMake) DefineBool ¶
DefineBool adds a -D<key>:BOOL=ON/OFF definition.
Click to show internal directories.
Click to hide internal directories.