This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/targetdir.md
2021-03-12 22:10:24 +01:00

923 B

Sets the destination directory for the compiled binary target.

targetdir ("path")

By default, the generated project files will place their compiled output in the same directory as the script. The targetdir function allows you to change this location.

Parameters

path is the file system path to the directory where the compiled target file should be stored. It is specified relative to the currently executing script file.

Applies To

Project configurations.

Availability

Premake 4.0 or later.

Examples

This project separates its compiled output by configuration type.

project "MyProject"

  configuration "Debug"
    targetdir "bin/debug"

  configuration "Release"
    targetdir "bin/release"

See Also