MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

gradients.pro Example File

demos/gradients/gradients.pro
 SOURCES += main.cpp gradients.cpp
 HEADERS += gradients.h

 SHARED_FOLDER = ../shared

 include($$SHARED_FOLDER/shared.pri)

 RESOURCES += gradients.qrc
 contains(QT_CONFIG, opengl) {
         DEFINES += QT_OPENGL_SUPPORT
         QT += opengl
 }

 # install
 target.path = $$[QT_INSTALL_DEMOS]/gradients
 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html
 sources.path = $$[QT_INSTALL_DEMOS]/gradients
 INSTALLS += target sources

 symbian: include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)