Files
sqlitebrowser/src/src.pro
Peinthor Rene 9394caffa9 add classes for a new sqlite field and table objects
plus a unittest build mode
2013-02-28 17:15:03 +01:00

85 lines
1.6 KiB
Prolog

TEMPLATE = app
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = sqlitebrowser
#INCLUDEPATH += sqlite_source/
CONFIG += qt \
warn_on
HEADERS += \
sqlitedb.h \
sqlbrowser_util.h \
MainWindow.h \
SQLiteSyntaxHighlighter.h \
CreateIndexDialog.h \
EditFieldDialog.h \
AboutDialog.h \
EditTableDialog.h \
PreferencesDialog.h \
FindDialog.h \
EditDialog.h \
ExportCsvDialog.h \
ImportCsvDialog.h \
sqltextedit.h \
sqlitetypes.h
SOURCES += \
sqlitedb.cpp \
sqlbrowser_util.c \
MainWindow.cpp \
SQLiteSyntaxHighlighter.cpp \
CreateIndexDialog.cpp \
EditFieldDialog.cpp \
EditTableDialog.cpp \
PreferencesDialog.cpp \
AboutDialog.cpp \
FindDialog.cpp \
EditDialog.cpp \
ExportCsvDialog.cpp \
ImportCsvDialog.cpp \
sqltextedit.cpp \
sqlitetypes.cpp
# create a unittest option
CONFIG(unittest) {
CONFIG += qtestlib
SOURCES += tests/testsqlobjects.cpp
} else {
SOURCES += main.cpp
}
QMAKE_CXXFLAGS += -DAPP_VERSION=\\\"`cd $$PWD;git log -n1 --format=%h_git`\\\"
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
LIBS += -ldl
}
win32:RC_FILE = winapp.rc
mac {
RC_FILE = macapp.icns
LIBS += -framework \
Carbon
QMAKE_INFO_PLIST = app.plist
CONFIG += x86 \
ppc
}
LIBS += -lsqlite3
RESOURCES += icons/icons.qrc
FORMS += \
MainWindow.ui \
CreateIndexDialog.ui \
AboutDialog.ui \
EditFieldDialog.ui \
EditTableDialog.ui \
PreferencesDialog.ui \
FindDialog.ui \
EditDialog.ui \
ExportCsvDialog.ui \
ImportCsvDialog.ui