targetextension

The targetextension function specifies the file extension for the compiled binary target.

targetextension ("ext")

By default, the project will use the system's normal naming conventions: .exe for Windows executables, .so for Linux shared libraries, and so on. The targetextension function allows you to change this default.

Applies To

Solutions, projects, and configurations.

Parameters

ext is the new file extension, including the leading dot.

See Also

targetname
targetdir
targetprefix
targetsuffix

Examples

targetextension ".zmf"