Compiling and running DGP Assignments in OSX

Donwload the Assignment 1 source code and unzip it to a work folder (e.g. ~/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 to use the 'Xcode' generator. 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. For the default installation these are:

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

Browse the newly created 'build' directory in a Finder window and double-click dgp-course-app.xcodeproj' to open Xcode. Once the project is loaded click over 'ALL_BUILD' at the top and change to '3dp-course-app'.

Compile and run the software clicking on the black triangle at the toolbar. You will find the 'homework1.cpp' file on the projecttree at the left to complete your homework.