Description: Projects about computer graphics include upsampling, rasterizing, and geometric modeling techniques (Bezier curves and surfaces using de Casteljau algorithm).
Look at this Tutorial if you want to skip reading or you have any problems with setting up.
- Make sure that the latest Xcode.app is installed through the Mac app store
- Clone your assignment repository from GitHub (ssh is recommended)
- Open your Terminal and use
cd
to change directory into the homework folder - Create a folder called
xcode
, and CD into it:mkdir xcode; cd xcode
(Remember to delete or replace the originalxcode
folder) - Setup cmake for XCode (while inside the
xcode
folder):cmake -G Xcode ..
- Open
Finder
and navigate to thexcode
folder - Double-click on the
<Project Name>.xcodeproj
file to open the project in XCode (it has a blue icon with a pen and paintbrush) - Build the project by clicking
Product > Build
on the top bar of your screen - Click on
ALL_BUILD
, located near the top right of Xcode - Click
Edit Scheme
- Select
Run
on the sidebar - Select
Info
on the top bar of theRun
page - Set
Executable
to the executable (in the case of Basics, it isquad_test
) - Select
Arguments
(insideEdit Scheme > Run
) to specify arguments (not necessary for Basics) - Select
Options
(insideEdit Scheme > Run
) and specify the working directory to be the xcode folder. - Press the play button to compile and launch the program
- If the C/C++ compiler can't be found when running cmake (step 5 above), try specifying the compiler with environment variables:
CC=gcc CXX=g++ cmake -G Xcode ..