torrent.pro Example File
torrent/torrent.pro
QT += network widgets
requires(qtConfig(filedialog))
HEADERS += addtorrentdialog.h \
bencodeparser.h \
connectionmanager.h \
mainwindow.h \
metainfo.h \
peerwireclient.h \
ratecontroller.h \
filemanager.h \
torrentclient.h \
torrentserver.h \
trackerclient.h
SOURCES += main.cpp \
addtorrentdialog.cpp \
bencodeparser.cpp \
connectionmanager.cpp \
mainwindow.cpp \
metainfo.cpp \
peerwireclient.cpp \
ratecontroller.cpp \
filemanager.cpp \
torrentclient.cpp \
torrentserver.cpp \
trackerclient.cpp
# Forms and resources
FORMS += forms/addtorrentform.ui
RESOURCES += icons.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/torrent
INSTALLS += target