2cb7c4c603
--HG-- branch : develop
229 lines
7.7 KiB
Prolog
229 lines
7.7 KiB
Prolog
#-------------------------------------------------
|
|
#
|
|
# Project created by QtCreator 2015-03-31T17:27:03
|
|
#
|
|
#-------------------------------------------------
|
|
|
|
QT += core testlib gui printsupport xml xmlpatterns concurrent opengl
|
|
|
|
TARGET = ValentinaTests
|
|
|
|
# File with common stuff for whole project
|
|
include(../../../common.pri)
|
|
|
|
# CONFIG += testcase adds a 'make check' which is great. But by default it also
|
|
# adds a 'make install' that installs the test cases, which we do not want.
|
|
# Can configure it not to do that with 'no_testcase_installs'
|
|
CONFIG += testcase no_testcase_installs
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
|
# depend on your compiler). Please consult the documentation of the
|
|
# deprecated API in order to know how to port your code away from it.
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
# In order to do so, uncomment the following line.
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
# Since Q5.4 available support C++14
|
|
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
|
CONFIG += c++14
|
|
} else {
|
|
# We use C++11 standard
|
|
CONFIG += c++11
|
|
}
|
|
|
|
# Use out-of-source builds (shadow builds)
|
|
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
|
|
|
TEMPLATE = app
|
|
|
|
# directory for executable file
|
|
DESTDIR = bin
|
|
|
|
# Directory for files created moc
|
|
MOC_DIR = moc
|
|
|
|
# objecs files
|
|
OBJECTS_DIR = obj
|
|
|
|
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
|
|
|
SOURCES += \
|
|
qttestmainlambda.cpp \
|
|
tst_vposter.cpp \
|
|
tst_vspline.cpp \
|
|
tst_nameregexp.cpp \
|
|
tst_vlayoutdetail.cpp \
|
|
tst_varc.cpp \
|
|
tst_qmutokenparser.cpp \
|
|
tst_vmeasurements.cpp \
|
|
tst_vlockguard.cpp \
|
|
tst_misc.cpp \
|
|
tst_vcommandline.cpp \
|
|
tst_vpiece.cpp \
|
|
tst_vabstractcurve.cpp \
|
|
tst_findpoint.cpp \
|
|
tst_vellipticalarc.cpp \
|
|
tst_vcubicbezierpath.cpp \
|
|
tst_vgobject.cpp \
|
|
tst_vsplinepath.cpp \
|
|
tst_vpointf.cpp \
|
|
tst_readval.cpp \
|
|
tst_vtranslatevars.cpp \
|
|
tst_vabstractpiece.cpp \
|
|
tst_vtooluniondetails.cpp
|
|
|
|
*msvc*:SOURCES += stable.cpp
|
|
|
|
HEADERS += \
|
|
tst_vposter.h \
|
|
tst_vspline.h \
|
|
tst_nameregexp.h \
|
|
tst_vlayoutdetail.h \
|
|
tst_varc.h \
|
|
stable.h \
|
|
tst_qmutokenparser.h \
|
|
tst_vmeasurements.h \
|
|
tst_vlockguard.h \
|
|
tst_misc.h \
|
|
tst_vcommandline.h \
|
|
tst_vpiece.h \
|
|
tst_vabstractcurve.h \
|
|
tst_findpoint.h \
|
|
tst_vellipticalarc.h \
|
|
tst_vcubicbezierpath.h \
|
|
tst_vgobject.h \
|
|
tst_vsplinepath.h \
|
|
tst_vpointf.h \
|
|
tst_readval.h \
|
|
tst_vtranslatevars.h \
|
|
tst_vabstractpiece.h \
|
|
tst_vtooluniondetails.h
|
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
|
$$enable_ccache()
|
|
|
|
include(warnings.pri)
|
|
|
|
CONFIG(release, debug|release){
|
|
# Release mode
|
|
!*msvc*:CONFIG += silent
|
|
DEFINES += V_NO_ASSERT
|
|
!unix:*g++*{
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
}
|
|
|
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
|
# do nothing
|
|
} else {
|
|
# Turn on debug symbols in release mode on Unix systems.
|
|
# On Mac OS X temporarily disabled. Need find way how to strip binary file.
|
|
!macx:!*msvc*{
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
QMAKE_LFLAGS_RELEASE =
|
|
}
|
|
}
|
|
}
|
|
|
|
#VTools static library (depend on VWidgets, VMisc, VPatternDB)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtools/$${DESTDIR}/ -lvtools
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtools
|
|
DEPENDPATH += $$PWD/../../libs/vtools
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtools/$${DESTDIR}/vtools.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtools/$${DESTDIR}/libvtools.a
|
|
|
|
#VWidgets static library
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/ -lvwidgets
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vwidgets
|
|
DEPENDPATH += $$PWD/../../libs/vwidgets
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/vwidgets.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/libvwidgets.a
|
|
|
|
# VFormat static library (depend on VPatternDB, IFC)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vformat/$${DESTDIR}/ -lvformat
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vformat
|
|
DEPENDPATH += $$PWD/../../libs/vformat
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vformat/$${DESTDIR}/vformat.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vformat/$${DESTDIR}/libvformat.a
|
|
|
|
#VPatternDB static library (depend on vgeometry, vmisc, VLayout)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vpatterndb/$${DESTDIR} -lvpatterndb
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vpatterndb
|
|
DEPENDPATH += $$PWD/../../libs/vpatterndb
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/vpatterndb.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/libvpatterndb.a
|
|
|
|
# IFC static library (depend on QMuParser, VMisc)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/ifc/$${DESTDIR}/ -lifc
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/ifc
|
|
DEPENDPATH += $$PWD/../../libs/ifc
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/ifc.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/libifc.a
|
|
|
|
#VTest static library
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtest/$${DESTDIR} -lvtest
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtest
|
|
DEPENDPATH += $$PWD/../../libs/vtest
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtest/$${DESTDIR}/vtest.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtest/$${DESTDIR}/libvtest.a
|
|
|
|
#VMisc static library
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR}/ -lvmisc
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vmisc
|
|
DEPENDPATH += $$PWD/../../libs/vmisc
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a
|
|
|
|
# VGeometry static library (depend on ifc)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vgeometry
|
|
DEPENDPATH += $$PWD/../../libs/vgeometry
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/vgeometry.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/libvgeometry.a
|
|
|
|
# VLayout static library
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vlayout/$${DESTDIR} -lvlayout
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vlayout
|
|
DEPENDPATH += $$PWD/../../libs/vlayout
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vlayout/$${DESTDIR}/vlayout.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vlayout/$${DESTDIR}/libvlayout.a
|
|
|
|
# QMuParser library
|
|
win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2
|
|
else:unix: LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/qmuparser
|
|
DEPENDPATH += $${PWD}/../../libs/qmuparser
|
|
|
|
# Only for adding path to LD_LIBRARY_PATH
|
|
# VPropertyExplorer library
|
|
win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
else:unix: LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/vpropertyexplorer
|
|
DEPENDPATH += $${PWD}/../../libs/vpropertyexplorer
|