1
0
mirror of https://github.com/itay-grudev/SingleApplication.git synced 2025-04-16 18:34:45 +08:00

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 git submodule add git@github.com:itay-grudev/SingleApplication.git singleapplication
``` ```
Then create a `singleapplication.pri` file with the following contents in your And include the `singleapplication.pri` file in your `.pro` project file:
project root folder:
```qmake ```qmake
DEFINES += QAPPLICATION_CLASS=QApplication include(singleapplication/singleapplication.pri)
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)
``` ```
The `Show Up` signal 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