Skip to content

sstitle/cmake_qt

Repository files navigation

CMake Qt

Here are some graphics examples using CMake and Qt.

Snake Game

Setup Dependencies

Install Qt6

Follow the instructions to install a recent version of Qt6, I was using 6.7.3 at the time of writing.

https://doc.qt.io/qt-6/get-and-install-qt.html

Install CMake

Follow the instructions to install CMake, a cross-platform tool for building C++ programs.

Build

make build-cpp

Run

There are a few executables you can run:

Snake

Example C++ implementation of Sanke using the state and reducer pattern.

make run-snake

Tic Tac Toe

Example C++ implementation of Tic-Tac-Toe using the state and reducer pattern. Inspired by the React tutorial here:

https://react.dev/learn/tutorial-tic-tac-toe

make run-tic-tac-toe

Ascii Play

Simple ASCII art showing randomized colors and letters. Inspired by (but nowhere as good as): https://ertdfgcvb.xyz/

make run-ascii-play

Hello GL

Based on code examples from:

https://duriansoftware.com/joe/an-intro-to-modern-opengl https://github.com/jckarter/hello-gl

make run-hello-gl

Cube GL

Simple rotating cube example:

make run-cube-gl

About

CMake and Qt C++ examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published