Skip to content

TTargets.AddProgram

Adds a program target to the collection

Declaration

Source position: fpmkunit.pp line 857

public 
function AddProgram(const AProgramName: string) : TTarget;

function AddProgram(const AProgramName: string; const OSes: TOSes)
                    : TTarget;

function AddProgram(const AProgramName: string; const CPUs: TCPUS; 
                   const OSes: TOSes) : TTarget;

Description

Creates and adds a new program target with the specified name to the target collection. The program will be compiled as an executable and can optionally be restricted to specific CPU architectures and operating systems.

See also

Name Description
AddUnit Adds a unit target to the collection
AddLibrary Adds a library target to the collection
ttProgram Executable program target