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:
parent
fe84b5663e
commit
e29b660add
17
README.md
17
README.md
@ -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
6
singleapplication.pri
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DEFINES += QAPPLICATION_CLASS=QApplication
|
||||||
|
|
||||||
|
HEADERS += $$PWD/singleapplication.h
|
||||||
|
SOURCES += $$PWD/singleapplication.cpp
|
||||||
|
|
||||||
|
QT += core network
|
Loading…
Reference in New Issue
Block a user