2015-03-31 16:48:58 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2015-03-31T17:27:03
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2018-03-10 15:39:37 +01:00
|
|
|
QT += core testlib gui printsupport xml xmlpatterns concurrent opengl
|
2015-03-31 16:48:58 +02:00
|
|
|
|
2015-04-15 20:41:29 +02:00
|
|
|
TARGET = ValentinaTests
|
2015-03-31 16:48:58 +02:00
|
|
|
|
2015-04-15 14:11:13 +02:00
|
|
|
# File with common stuff for whole project
|
2015-07-10 11:28:30 +02:00
|
|
|
include(../../../common.pri)
|
2015-04-15 14:11:13 +02:00
|
|
|
|
2015-04-02 19:43:33 +02:00
|
|
|
# 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'
|
2017-05-30 17:54:54 +02:00
|
|
|
CONFIG += testcase no_testcase_installs
|
|
|
|
|
2018-03-22 18:57:56 +01:00
|
|
|
# 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
|
|
|
|
|
2017-05-30 17:54:54 +02:00
|
|
|
# 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
|
|
|
|
}
|
2015-03-31 16:48:58 +02:00
|
|
|
|
|
|
|
# Use out-of-source builds (shadow builds)
|
2015-04-02 19:43:33 +02:00
|
|
|
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
2015-03-31 16:48:58 +02:00
|
|
|
|
2015-04-02 19:43:33 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
# directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# Directory for files created moc
|
|
|
|
MOC_DIR = moc
|
2015-03-31 16:48:58 +02:00
|
|
|
|
2015-04-02 19:43:33 +02:00
|
|
|
# objecs files
|
|
|
|
OBJECTS_DIR = obj
|
2015-04-02 13:31:23 +02:00
|
|
|
|
2015-03-31 16:48:58 +02:00
|
|
|
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
qttestmainlambda.cpp \
|
2015-04-16 15:54:40 +02:00
|
|
|
tst_vposter.cpp \
|
2015-05-07 15:12:53 +02:00
|
|
|
tst_vspline.cpp \
|
2015-05-17 17:31:17 +02:00
|
|
|
tst_nameregexp.cpp \
|
2015-06-09 12:21:10 +02:00
|
|
|
tst_vlayoutdetail.cpp \
|
2015-06-15 16:06:37 +02:00
|
|
|
tst_varc.cpp \
|
2015-10-16 10:13:23 +02:00
|
|
|
tst_qmutokenparser.cpp \
|
2015-10-16 13:55:23 +02:00
|
|
|
tst_vmeasurements.cpp \
|
2015-10-31 13:41:52 +01:00
|
|
|
tst_vlockguard.cpp \
|
2015-11-09 19:02:38 +01:00
|
|
|
tst_misc.cpp \
|
2015-12-13 17:33:00 +01:00
|
|
|
tst_vcommandline.cpp \
|
2017-01-22 14:29:23 +01:00
|
|
|
tst_vpiece.cpp \
|
2016-03-15 16:38:07 +01:00
|
|
|
tst_vabstractcurve.cpp \
|
2016-02-27 15:53:17 +01:00
|
|
|
tst_findpoint.cpp \
|
2016-03-19 15:20:09 +01:00
|
|
|
tst_vellipticalarc.cpp \
|
2016-08-16 17:23:38 +02:00
|
|
|
tst_vcubicbezierpath.cpp \
|
2016-09-10 13:17:08 +02:00
|
|
|
tst_vgobject.cpp \
|
2016-09-10 15:40:38 +02:00
|
|
|
tst_vsplinepath.cpp \
|
2016-11-18 11:58:47 +01:00
|
|
|
tst_vpointf.cpp \
|
2017-01-03 10:14:32 +01:00
|
|
|
tst_readval.cpp \
|
2017-01-03 10:48:22 +01:00
|
|
|
tst_vtranslatevars.cpp \
|
2017-09-11 15:05:00 +02:00
|
|
|
tst_vabstractpiece.cpp \
|
|
|
|
tst_vtooluniondetails.cpp
|
2015-03-31 16:48:58 +02:00
|
|
|
|
2017-07-05 10:35:32 +02:00
|
|
|
*msvc*:SOURCES += stable.cpp
|
2016-08-04 18:28:28 +02:00
|
|
|
|
2015-03-31 16:48:58 +02:00
|
|
|
HEADERS += \
|
2015-04-16 15:54:40 +02:00
|
|
|
tst_vposter.h \
|
2015-05-07 15:12:53 +02:00
|
|
|
tst_vspline.h \
|
2015-05-17 17:31:17 +02:00
|
|
|
tst_nameregexp.h \
|
2015-06-09 12:21:10 +02:00
|
|
|
tst_vlayoutdetail.h \
|
2015-06-15 16:06:37 +02:00
|
|
|
tst_varc.h \
|
2015-09-17 20:44:15 +02:00
|
|
|
stable.h \
|
2015-10-16 10:13:23 +02:00
|
|
|
tst_qmutokenparser.h \
|
2015-10-16 13:55:23 +02:00
|
|
|
tst_vmeasurements.h \
|
2015-10-31 13:41:52 +01:00
|
|
|
tst_vlockguard.h \
|
2015-11-09 19:02:38 +01:00
|
|
|
tst_misc.h \
|
2015-12-13 17:33:00 +01:00
|
|
|
tst_vcommandline.h \
|
2017-01-22 14:29:23 +01:00
|
|
|
tst_vpiece.h \
|
2016-03-15 16:38:07 +01:00
|
|
|
tst_vabstractcurve.h \
|
2016-02-27 15:53:17 +01:00
|
|
|
tst_findpoint.h \
|
2016-03-19 15:20:09 +01:00
|
|
|
tst_vellipticalarc.h \
|
2016-08-16 17:23:38 +02:00
|
|
|
tst_vcubicbezierpath.h \
|
2016-09-10 13:17:08 +02:00
|
|
|
tst_vgobject.h \
|
2016-09-10 15:40:38 +02:00
|
|
|
tst_vsplinepath.h \
|
2016-11-18 11:58:47 +01:00
|
|
|
tst_vpointf.h \
|
2017-01-03 10:14:32 +01:00
|
|
|
tst_readval.h \
|
2017-01-03 10:48:22 +01:00
|
|
|
tst_vtranslatevars.h \
|
2017-09-11 15:05:00 +02:00
|
|
|
tst_vabstractpiece.h \
|
2018-01-21 20:42:04 +01:00
|
|
|
tst_vtooluniondetails.h
|
2015-06-15 16:06:37 +02:00
|
|
|
|
2015-07-10 11:28:30 +02:00
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
2015-06-15 16:06:37 +02:00
|
|
|
$$enable_ccache()
|
|
|
|
|
2016-07-29 20:04:53 +02:00
|
|
|
include(warnings.pri)
|
|
|
|
|
|
|
|
CONFIG(release, debug|release){
|
2015-04-15 14:11:13 +02:00
|
|
|
# Release mode
|
2017-07-05 10:35:32 +02:00
|
|
|
!*msvc*:CONFIG += silent
|
2015-04-15 14:11:13 +02:00
|
|
|
DEFINES += V_NO_ASSERT
|
2017-07-05 10:35:32 +02:00
|
|
|
!unix:*g++*{
|
2015-04-15 14:11:13 +02:00
|
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
|
|
}
|
|
|
|
|
2015-05-18 10:26:54 +02:00
|
|
|
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.
|
2017-07-05 10:35:32 +02:00
|
|
|
!macx:!*msvc*{
|
2015-05-18 10:26:54 +02:00
|
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_LFLAGS_RELEASE =
|
|
|
|
}
|
2015-04-15 14:11:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-25 18:06:36 +01:00
|
|
|
#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
|
|
|
|
|
2015-10-16 10:13:23 +02:00
|
|
|
# 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
|
|
|
|
|
2015-09-17 20:44:15 +02:00
|
|
|
#VPatternDB static library (depend on vgeometry, vmisc, VLayout)
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vpatterndb/$${DESTDIR} -lvpatterndb
|
2015-04-15 14:11:13 +02:00
|
|
|
|
2015-09-17 20:44:15 +02:00
|
|
|
INCLUDEPATH += $$PWD/../../libs/vpatterndb
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vpatterndb
|
2015-04-15 14:11:13 +02:00
|
|
|
|
2015-09-17 20:44:15 +02:00
|
|
|
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
|
2015-05-07 15:12:53 +02:00
|
|
|
|
2016-08-21 17:57:08 +02:00
|
|
|
# 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
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
#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
|
|
|
|
|
2015-09-17 20:44:15 +02:00
|
|
|
#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)
|
2015-05-07 15:12:53 +02:00
|
|
|
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
|
2015-09-17 20:44:15 +02:00
|
|
|
|
|
|
|
# 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
|
2015-09-28 12:42:26 +02:00
|
|
|
|
|
|
|
# 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
|