1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
!include(../qtpass.pri) { error("Couldn't find the qtpass.pri file!") }
TEMPLATE = app
QT += core gui
CONFIG += c++11
LIBS = -L"$$OUT_PWD/../src/$(OBJECTS_DIR)" -lqtpass $$LIBS
clang|gcc:PRE_TARGETDEPS += "$$OUT_PWD/../src/$(OBJECTS_DIR)/libqtpass.a"
INCLUDEPATH += ../src
macx {
TARGET = QtPass
} else {
TARGET = qtpass
}
SOURCES += main.cpp
QMAKE_RESOURCE_FLAGS += --format-version 1
isEmpty(PREFIX) {
PREFIX = $$(PREFIX)
}
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin/
INSTALLS += target
|