Compiling and running DGP Assignments in Windows

Donwload the source code and unzip it to a work folder (e.g. C:\DGP). Open Cmake GUI and fill the 'Where is the source code' box with the path the the 'src' directory in the code folder. Fill the box below, the build path, with the same path but erase 'src' and write 'build' instead, it should look similar to this:


Click on 'Configure' and agree to create the build directory. On the next screen choose 'Visual Studio 14 2015' or 'Visual Studio 14 2015 Win64' to generate either a 32bits or 64bits project. The configuration script will run and finish with an error message because we have yet not set the location of some Qt modules.


Check the 'Group' and 'Advanced' checkboxes to organize the options. Expand the 'Ungrouped entries' and fill the path for each Qt5 module which appears as DIR_NOTFOUND. For each module you must point Cmake to the directory with the corresponding Cmake files. On a default 32bits installation these are:

On a default 64bits installation these are:


Repeat 'Configure' and fix errors until no more error messages appear. Click on 'Generate' to create a Visual Studio project and close Cmake.

Browse the newly created 'build' directory in a File Explorer window and double-click the dgp-course-app.sln' file to open Visual Studio. Once the solution is loaded is convenient to right click over dgp-course-app' on the Solution Explorer and choose 'Set as StartUp Project' after what it will appear with bold font.


Compile and run the software clicking on the green triangle at the toolbar. You will find the 'homework1.cpp' file on the solution solution explorer to complete your homework.