TTargets.AddUnit¶
Adds a unit target to the collection
Declaration¶
Source position: fpmkunit.pp line 847
public
function AddUnit(const AUnitName: string) : TTarget;
function AddUnit(const AUnitName: string; const OSes: TOSes) : TTarget;
function AddUnit(const AUnitName: string; const CPUs: TCPUS;
const OSes: TOSes) : TTarget;
Description¶
Creates and adds a new unit target with the specified name to the target collection. The unit will be compiled as a regular Pascal unit and can optionally be restricted to specific CPU architectures and operating systems.
See also¶
| Name | Description |
|---|---|
| AddProgram | Adds a program target to the collection |
| AddLibrary | Adds a library target to the collection |
| AddImplicitUnit | Adds an implicit unit target to the collection |