# Compiling in Windows

To compile your project, open up the solution, right-click the INSTALL project, and click 'build'. You only need to do this the first time.

The INSTALL project not only compiles the engine, but also installs the BaseGame template files in your project.

{% hint style="info" %}
Note, post 4.0.3 the CMake generation stepp will automatically install the template files for you, so you don't need to run the INSTALL project first. You can instead just compile the application project itself.
{% endhint %}

![](/files/uB9vxqKmJ9DjzxcufQVV)

The engine executable will be generated in the project's game folder (i.e. My Projects/\<project name>/game/\<project name>.exe).

### Using the command-line <a href="#toc5" id="toc5"></a>

```
cd "C:\Torque3D\My Projects\Game\buildFiles\CMake"

cmake ^
  -G "Visual Studio 17" ^
  -T "v143" ^
  -DTORQUE_APP_NAME="MyGame" ^
  -DTORQUE_SFX_VORBIS=On ^
  -DTORQUE_THEORA=On ^
  -DCMAKE_BUILD_TYPE=Release ^
  C:\Torque3D

msbuild "MyGame.sln" /p:PlatformToolset=v143 /p:Configuration=Release
```

Change "Visual Studio 17" to the appropriate generator for your system and "MyGame" to your projectName


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.torque3d.org/for-programmers/compiling-the-engine/compiling/compiling-in-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
