Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TTargets.AddProgram

Adds a program target to the collection

Declaration

Source position: fpmkunit.pp line 853

public function TTargets.AddProgram(

  const AProgramName: string

):TTarget;

function TTargets.AddProgram(

  const AProgramName: string;

  const OSes: TOSes

):TTarget;

function TTargets.AddProgram(

  const AProgramName: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TTarget;

Arguments

AProgramName

  

Name of the program to add

Function result

Newly created program target

Arguments

AProgramName

  

Name of the program to add

OSes

  

Set of operating systems for this program

Arguments

AProgramName

  

Name of the program to add

CPUs

  

Set of CPU architectures for this program

OSes

  

Set of operating systems for this program

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

AddUnit

  

Adds a unit target to the collection

AddLibrary

  

Adds a library target to the collection

ttProgram

  

Executable program target


Documentation generated on: Dec 15 2025