Cpp qt: qmake
From wikinotes
QMake is Qt's build system. It is dramatically simpler to build pure-Qt projects with than cmake, but 3rd party tools are less likely to support it (linters, 3rd party modules, etc).
I have not tested this anywhere but linux, but I expect it would work on windows/macosx.
project/
includes/
mybutton.h
src/
main.cpp
mybutton.cpp
main.pro
main.pro
QT += widgets core gui
SOURCES += src/main.cpp src/mybutton.cpp
HEADERS += include/mybutton.h
INCLUDEPATH += include
TARGET = bin/main
BUILD_DIR = build
Build Commands
cd yourproject/
qmake -o Makefile main.pro
make