Qt-UI
Compilation with Q Make
← Widget Size | ● | Compilation with CMake →
Supposed we have a single cpp module named “main.cpp” that contains our Qt exmaple, we compile it using the QMake platform independent build system with the following QMake project description file:
TARGET = main TEMPLATE = app QT += core gui SOURCES += main.cpp
QMake takes the project description file (e.g. “main.pro”) and transforms it into a project representation that is suitable for the respective platform:
- On Unix it will produce a “Makefile” to be compiled with “make” on the command line.
- On Mac it will produce a XCode project description (.xcode)to be opened with XCode IDE.
- On Windows it will produce a MSCV project solution (.sln) to be opened with the M$$$ Visual C++ IDE.
On Unix we type the following command to compile:
qmake && make
On Mac we type the following command to compile:
qmake -spec macx-g++ && make
← Widget Size | ● | Compilation with CMake →