We start by creating a new subproject called textual user interface (tui). For this subproject, we use Qt Creator's Qt Console Application template:
In part1-whats_in_my_fridge we should thus get the following project structure:
# part1-whats_in_my_fridge.proTEMPLATE = subdirsSUBDIRS += \ usecases \ entities \ repositories \ #gui \ tui
Looking into the tui subproject, we will find the tui.pro file, and a generated main.cpp.
The .pro file has got a bunch of qmake directives. Among these, we can see:
# tui.proQT -= gui...CONFIG += consoleCONFIG -= app_bundle...
The QT -= gui directive excludes the Qt ...