/inf443

Primary LanguageC++OtherNOASSERTION

INF443 Project

Introduction

This project uses the CGP library, which can be found here.

See CGP Documentation for details.

Compiling the project

The directory library/ contains the source code of CGP, while the directory scenes/ contains the scenes. Each scene is an independant program with its own Makefile and/or CMakeLists.txt.

The scenes should be run from their root path where shaders/ (and possibly assets/) directories are accessible.

Tl;dr: Go to scenes/inf443/generator and then make &&& ./pgm. Should work at least on Linux.

Dependencies

CGP requires

  • A C++14 (or greater) compatible compiler (GCC/CLang, or a recent Visual Studio).
  • An OpenGL 3.3 (or greater) compatible system.
  • libGLFW and pkgconfig installed for Linux/MacOS system.

Linux/MacOS

Assuming a command line opened in one of the scenes.

  • Method 1. Using the provided Makefile:
$ make
$ ./[executable-name]
  • Method 2. Using the provided CMakeLists.txt:
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..
$ build/[executable-name]

Windows

  • Method 1. Create a Visual Studio project using CMake
  • Method 2. Open the CMakeLists.txt using the internal CMake tool from Visual.

Once opened by Visual Studio, the project should be configured to compile and be executed directly without further setup. Make sure your Windows version is updated for Visual Studio to be able to compile correctly C++14.

Detailed system set-up and compilation

A detailed tutorial on how to install and compile C++ code is available here if needed: Detailed installation and compilation for CGP.