Documentation
¶
Overview ¶
package cmake provides tools to create, configure and build C & C++ projects using CMake
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LibraryExists ¶
LibraryExists tries to compile a simple program linking to the given library
Types ¶
type Cmake ¶
type Cmake struct {
// Configs required for CMakeLists.txt
Name string // Executable name
IsCpp bool
Standard int // CMAKE_C/CXX_STANDARD
Files []string
IncludeDirs []string
LinkLibs []string // Library names or full paths
LinkDirs []string // Where should the linker look for libraries
Generator string
// Build configuration
ConfDir string
BuildDir string
// contains filtered or unexported fields
}
Cmake contains all configuration necessary to configure and build a CMake project
func (*Cmake) CreateTempDirs ¶
CreateTempDirs creates temporary directories for conf and build dir
func (*Cmake) GetCMakeListsTxt ¶
func (*Cmake) RemoveTempDirs ¶
func (*Cmake) WriteCMakeListsTxt ¶
WriteCMakeListsTxt writes cmake specification to file and returns the file name.
Click to show internal directories.
Click to hide internal directories.