2021-07-02 09:19:02 +00:00
|
|
|
QT += core gui sql
|
2019-10-12 09:01:25 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
2021-05-30 07:59:42 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
|
2019-10-12 09:01:25 +00:00
|
|
|
|
2020-05-28 06:19:20 +00:00
|
|
|
TARGET = dbpage
|
|
|
|
TEMPLATE = app
|
|
|
|
DESTDIR = $$PWD/../bin
|
|
|
|
CONFIG += warn_off
|
2019-10-12 09:01:25 +00:00
|
|
|
|
2020-05-28 06:19:20 +00:00
|
|
|
SOURCES += main.cpp
|
|
|
|
SOURCES += dbpage.cpp
|
|
|
|
SOURCES += frmdbpage.cpp
|
2019-10-12 09:01:25 +00:00
|
|
|
|
2024-03-16 09:48:25 +00:00
|
|
|
HEADERS += head.h
|
2020-05-28 06:19:20 +00:00
|
|
|
HEADERS += dbpage.h
|
|
|
|
HEADERS += frmdbpage.h
|
|
|
|
FORMS += frmdbpage.ui
|
2019-10-12 09:01:25 +00:00
|
|
|
|
2021-11-17 07:33:19 +00:00
|
|
|
#自动拷贝文件
|
|
|
|
src_file = $$PWD/TA.db
|
|
|
|
dst_file = $$DESTDIR
|
|
|
|
win32 {
|
|
|
|
#转换斜杠 / 到 \\
|
|
|
|
src_file ~= s,/,\\,g
|
|
|
|
dst_file ~= s,/,\\,g
|
|
|
|
dst_file2 ~= s,/,\\,g
|
|
|
|
QMAKE_POST_LINK += copy $$src_file $$dst_file
|
|
|
|
}
|
|
|
|
unix {
|
|
|
|
QMAKE_POST_LINK += cp -r -f $$src_file $$dst_file
|
|
|
|
}
|