(.js)
laraImport("lara.cmake.CMaker");
(.lara)
import lara.cmake.CMaker;
Classes:
new CMaker()
_addExtraIncludes(includes)
_getCFlagsCode()
_getCxxFlagsCode()
_getExecutableName()
_getIncludeFoldersCode()
_getProjectDirectoriesCode()
addCFlags()
Adds a variable number of Strings, one for each flag.
addCurrentAst()
addCxxFlags()
Adds a variable number of Strings, one for each flag.
addFlags()
addIncludeFolder(includeFolder)
param includeFolder String representing an include folder
addLibs(arguments)
Adds link-time libraries (e.g., m for math.h).
build([cmakelistsFolder = ], [builderFolder = /build], cmakeFlags)
Builds the program currently defined in the CMaker object.
constructor(name, disableWeaving)
copy()
getCode()
getMakeOutput()
getSources()
setCompiler([missing param name])
setCustomCMakeCode(customCMakeCode)
Custom CMake code that will be appended to the end of the CMake file.
setGenerator(generator)
setMakeCommand(makeCommand)
setMinimumVersion(version)
Sets the minimum version of the CMake file.
setName(name)
Sets the name of the executable.
setPrintToolsOutput(printToolsOutput)
Sets if output of external tools (e.g., cmake, make) should appear in the console. By default it is off.