Distributed a .pri file with the library

This commit is contained in:
Itay Grudev 2016-05-27 02:36:12 +01:00
parent fe84b5663e
commit e29b660add
2 changed files with 8 additions and 15 deletions

View File

@ -55,23 +55,10 @@ how:
git submodule add git@github.com:itay-grudev/SingleApplication.git singleapplication
```
Then create a `singleapplication.pri` file with the following contents in your
project root folder:
And include the `singleapplication.pri` file in your `.pro` project file:
```qmake
DEFINES += QAPPLICATION_CLASS=QApplication
HEADERS += $$PWD/singleapplication/singleapplication.h
SOURCES += $$PWD/singleapplication/singleapplication.cpp
INCLUDEPATH += $$PWD/singleapplication/
QT += core network
```
And include the `.pri` file in your `.pro` project file:
```qmake
include(singleapplication.pri)
include(singleapplication/singleapplication.pri)
```
The `Show Up` signal

6
singleapplication.pri Normal file
View File

@ -0,0 +1,6 @@
DEFINES += QAPPLICATION_CLASS=QApplication
HEADERS += $$PWD/singleapplication.h
SOURCES += $$PWD/singleapplication.cpp
QT += core network