Installation and installation prefix

This commit is contained in:
Mikołaj Siedlarek 2013-12-24 10:15:59 +01:00
parent 026244f0b9
commit 80f8d85d51

View File

@ -11,5 +11,18 @@ CONFIG += staticlib
SOURCES += QtAwesome.cpp
HEADERS += QtAwesome.h
isEmpty(PREFIX) {
unix {
PREFIX = /usr
} else {
PREFIX = $$[QT_INSTALL_PREFIX]
}
}
install_headers.files = QtAwesome.h
install_headers.path = $$PREFIX/include
target.path = $$PREFIX/lib
INSTALLS += install_headers target
RESOURCES += \
QtAwesome.qrc