|
QT += core
|
|
QT += sql
|
|
#if you need Image Validation you must compile with += gui
|
|
#QT += gui
|
|
QT -= gui
|
|
|
|
TARGET = CuteEntityManager
|
|
TEMPLATE = lib
|
|
|
|
DEFINES += CUTE_ENTITY_MANAGER_LIBRARY
|
|
|
|
HEADERS += \
|
|
src/entity.h \
|
|
src/entitymanager.h \
|
|
src/database.h \
|
|
src/enums/databasetype.h \
|
|
src/schema.h \
|
|
src/schema/sqliteschema.h \
|
|
src/tableschema.h \
|
|
src/schema/pgsqlschema.h \
|
|
src/schema/mysqlschema.h \
|
|
src/databasemigration.h \
|
|
src/querybuilder.h \
|
|
src/schema/sqlitequerybuilder.h \
|
|
src/relation.h \
|
|
src/entityinstancefactory.h \
|
|
src/cache.h \
|
|
src/entityhelper.h \
|
|
src/logger.h \
|
|
src/query.h \
|
|
src/join.h \
|
|
src/queryinterpreter.h \
|
|
src/expression.h \
|
|
src/orderby.h \
|
|
src/sqlitebackupprocessor.h \
|
|
src/validators/validator.h \
|
|
src/validators/param.h \
|
|
src/validators/errormsg.h \
|
|
src/validators/defaultvalidator.h \
|
|
src/validators/validatorfactory.h \
|
|
src/validators/validatorrule.h \
|
|
src/validators/requiredvalidator.h \
|
|
src/validators/numbervalidator.h \
|
|
src/validators/urlvalidator.h \
|
|
src/validators/comparevalidator.h \
|
|
src/validators/datevalidator.h \
|
|
src/validators/emailvalidator.h \
|
|
src/validators/existvalidator.h \
|
|
src/validators/filevalidator.h \
|
|
src/validators/imagevalidator.h \
|
|
src/validators/uniquevalidator.h \
|
|
src/validators/patternvalidator.h \
|
|
src/validators/lengthvalidator.h
|
|
|
|
SOURCES += \
|
|
src/entity.cpp \
|
|
src/entitymanager.cpp \
|
|
src/database.cpp \
|
|
src/schema.cpp \
|
|
src/schema/sqliteschema.cpp \
|
|
src/tableschema.cpp \
|
|
src/schema/pgsqlschema.cpp \
|
|
src/schema/mysqlschema.cpp \
|
|
src/databasemigration.cpp \
|
|
src/querybuilder.cpp \
|
|
src/schema/sqlitequerybuilder.cpp \
|
|
src/relation.cpp \
|
|
src/entityinstancefactory.cpp \
|
|
src/cache.cpp \
|
|
src/entityhelper.cpp \
|
|
src/logger.cpp \
|
|
src/query.cpp \
|
|
src/join.cpp \
|
|
src/queryinterpreter.cpp \
|
|
src/expression.cpp \
|
|
src/orderby.cpp \
|
|
src/sqlitebackupprocessor.cpp \
|
|
src/validators/validator.cpp \
|
|
src/validators/param.cpp \
|
|
src/validators/errormsg.cpp \
|
|
src/validators/defaultvalidator.cpp \
|
|
src/validators/validatorfactory.cpp \
|
|
src/validators/validatorrule.cpp \
|
|
src/validators/requiredvalidator.cpp \
|
|
src/validators/numbervalidator.cpp \
|
|
src/validators/urlvalidator.cpp \
|
|
src/validators/comparevalidator.cpp \
|
|
src/validators/datevalidator.cpp \
|
|
src/validators/emailvalidator.cpp \
|
|
src/validators/existvalidator.cpp \
|
|
src/validators/filevalidator.cpp \
|
|
src/validators/imagevalidator.cpp \
|
|
src/validators/uniquevalidator.cpp \
|
|
src/validators/patternvalidator.cpp \
|
|
src/validators/lengthvalidator.cpp
|
|
|
|
CONFIG += c++14
|
|
QMAKE_CXXFLAGS += -std=c++14
|
|
LIBS += -lsqlite3
|
|
unix {
|
|
target.path = /usr/lib
|
|
INSTALLS += target
|
|
QMAKE_CXXFLAGS += -Wall -Wextra -Wmaybe-uninitialized -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override -Wunsafe-loop-optimizations -pedantic -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code -O
|
|
}
|
|
|
|
win32-g++ {
|
|
CONFIG += c++11
|
|
QMAKE_CXXFLAGS += -std=c++11 -Wall
|
|
}
|
|
|
|
#QMAKE_CXXFLAGS += -Winit-self
|
|
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
|