- CMake
- vcpkg and install the following packages:
- opengl
- glfw3
- stb
- Set VCPKG_ROOT environment variable to the vcpkg folder
- On Windows:
- Visual Studio for MSVC (or use clang)
- Open the
csc1029-assessment2
folder in a terminal. - Run:
- Debug
# Debug
DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=Debug
mkdir out && \
cd out && \
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" ${DEBUG_FLAGS} && \
cmake --build .
- Release
# Debug
RELEASE_FLAGS = -DCMAKE_BUILD_TYPE=Release
mkdir out && \
cd out && \
cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" ${RELEASE_FLAGS} && \
cmake --build .
Use above commands, or, with make installed:
Open the csc1029-assessment2
folder in a terminal and run the following command:
- GUI
make gui
- TUI
make tui
This will start the application and display the main menu.