Pie Noon
An open source project by FPL.
 All Classes Pages
Building for Windows

You can use cmake to generate a Visual Studio project for Pie Noon on Windows.

Version Requirements

These are the minimum required versions for building Pie Noon for Windows:

Before Building

Creating the Visual Studio Solution using cmake

Use cmake to generate the Visual Studio solution and project files.

The following example generates the Visual Studio 2012 solution in the pie_noon directory:

cd pie_noon
cmake -G "Visual Studio 11"

To generate a Visual Studio 2010 solution, use this command:

cd pie_noon
cmake -G "Visual Studio 10"

Running cmake under [cygwin][] requires empty TMP, TEMP, tmp and temp variables. To generate a Visual Studio solution from a [cygwin][] bash shell use:

$ cd pie_noon
$ ( unset {temp,tmp,TEMP,TMP} ; cmake -G "Visual Studio 11" )

Building with Visual Studio

  • Double-click on pie_noon/pie_noon.sln to open the solution.
  • Select "Build-->Build Solution" from the menu.

It's also possible to build from the command line using msbuild after using vsvars32.bat to setup the Visual Studio build environment. For example, assuming Visual Studio is installed in c:\Program Files (x86)\Microsoft Visual Studio 11.0.

cd pie_noon
"c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"
cmake -G "Visual Studio 11"
msbuild pie_noon.sln

Executing the Game

  • Right-click on the pie_noon project in the Solution Explorer pane, and select "Set as StartUp Project".
  • Select "Debug-->Start Debugging" from the menu.