mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +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
|
||||
```
|
||||
|
||||
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
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