Qmake

From ThorstensHome
Jump to: navigation, search

qmake is a special make environment for Qt based programs.

Here is an example qmake file quickpen.pro:

# -------------------------------------------------
# Project created by QtCreator 2010-01-26T14:37:11
# -------------------------------------------------

TARGET = quickpen
TEMPLATE = app
SOURCES += main.cpp \
    mainwindow.cpp \
    drawscene.cpp \
    moreform.cpp
HEADERS += mainwindow.h \
    drawscene.h \
    moreform.h
FORMS += mainwindow.ui \
    moreform.ui

target.path = /usr/local/bin
INSTALLS += target

Calling

qmake

in this folder will create a Makefile that you can process using the command

make

and install using the command

make install

See also