The kind function sets the kind of binary object being created by the project, such as a console or windowed application, or a shared or static library.
kind ("kind")
Applies To
Solutions, projects, and configurations.
Parameters
kind is the project kind identifier, and must be one of:
- ConsoleApp
- A console, or command-line, executable.
- WindowedApp
- An application that runs in a desktop window. This distinction does not apply on Linux, but is important on Windows and Mac OS X.
- SharedLib
- A shared library, or DLL.
- StaticLib
- A static library.
Examples
Set the project to generate a console executable.
kind "ConsoleApp"Set the project to generate a shared library (DLL).
kind "SharedLib"You can also set different kinds for each configuration. This is not supported by Xcode.
solution "MySolution" configurations { "DebugLib", "ReleaseLib", "DebugDLL", "ReleaseDLL" } project "MyProject" configuration "*Lib" kind "StaticLib" configuration "*DLL" kind "SharedLib"


