This tutorial show how to build Wt projects using cmake. (It assumes a Debian-like system, but can probably run on any GNU/Linux system, or be easily adapted.)
./install.sh ## this script fetches wt-3.3.5 from https://github.com/kdeforche/wt/archive/3.3.5.tar.gz
This script will create 2 directories ./witty_build/
and ./witty_install/
.
Alternatively, you might also be interested in trying your system’s own packaged witty:
sudo apt-get install witty witty-dev
(Note: these examples use ./witty_install/
(generated via ./install.sh
from above), or otherwise (if ./witty_install/
does not exist) try and use your system’s packaged witty.)
Note that all examples have a folder with cmake/FindWt.cmake
which is from here.
(Adapted from https://github.com/kdeforche/wt/tree/master/examples/hello)
cd hello
./script_build_and_run.sh
(Adapted from https://github.com/kdeforche/wt/tree/master/examples/hangman)
cd hangman
./script_build_and_run.sh