2016-08-04 19:10:12 +02:00
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Project created by QtCreator 2016-08-04T19:29:55
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
QT += testlib widgets printsupport
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
QT -= gui
|
|
|
|
|
|
|
|
|
|
TARGET = CollectionTest
|
|
|
|
|
|
|
|
|
|
# File with common stuff for whole project
|
|
|
|
|
include(../../../common.pri)
|
|
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
}
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
# Use out-of-source builds (shadow builds)
|
|
|
|
|
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
|
|
|
|
|
|
|
|
|
# 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_tapecommandline.cpp \
|
|
|
|
|
tst_valentinacommandline.cpp
|
|
|
|
|
|
2017-07-05 10:35:32 +02:00
|
|
|
|
*msvc*:SOURCES += stable.cpp
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
stable.h \
|
|
|
|
|
tst_tapecommandline.h \
|
|
|
|
|
tst_valentinacommandline.h
|
|
|
|
|
|
|
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
|
|
|
|
$$enable_ccache()
|
|
|
|
|
|
2016-08-06 18:18:25 +02:00
|
|
|
|
include(warnings.pri)
|
|
|
|
|
|
|
|
|
|
CONFIG(release, debug|release){
|
2016-08-04 19:10:12 +02:00
|
|
|
|
# Release mode
|
2017-07-05 10:35:32 +02:00
|
|
|
|
!*msvc*:CONFIG += silent
|
2016-08-04 19:10:12 +02:00
|
|
|
|
DEFINES += V_NO_ASSERT
|
2017-07-05 10:35:32 +02:00
|
|
|
|
!unix:*g++*{
|
2016-08-04 19:10:12 +02:00
|
|
|
|
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.
|
2017-07-05 10:35:32 +02:00
|
|
|
|
!macx:!*msvc*{
|
2016-08-04 19:10:12 +02:00
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
|
QMAKE_LFLAGS_RELEASE =
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
#VTools static library (depend on VWidgets, VMisc, VPatternDB)
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtools/$${DESTDIR}/ -lvtools
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtools
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vtools
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
#VWidgets static library
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/ -lvwidgets
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vwidgets
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vwidgets
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
# VFormat static library (depend on VPatternDB, IFC)
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vformat/$${DESTDIR}/ -lvformat
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vformat
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vformat
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
#VPatternDB static library (depend on vgeometry, vmisc, VLayout)
|
2017-06-01 12:04:25 +02:00
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vpatterndb/$${DESTDIR} -lvpatterndb
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vpatterndb
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vpatterndb
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
#VTest static library
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtest/$${DESTDIR} -lvtest
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtest
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vtest
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
# VGeometry static library (depend on ifc)
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vgeometry
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vgeometry
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
# IFC static library (depend on QMuParser)
|
2017-06-01 12:04:25 +02:00
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/ifc/$${DESTDIR}/ -lifc
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/ifc
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/ifc
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
#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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
# VLayout static library
|
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vlayout/$${DESTDIR} -lvlayout
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vlayout
|
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vlayout
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
# QMuParser library
|
2017-06-01 12:04:25 +02:00
|
|
|
|
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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/qmuparser
|
|
|
|
|
DEPENDPATH += $${PWD}/../../libs/qmuparser
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +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
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
2017-06-01 12:04:25 +02:00
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/vpropertyexplorer
|
|
|
|
|
DEPENDPATH += $${PWD}/../../libs/vpropertyexplorer
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
TAPE_TEST_FILES += \
|
|
|
|
|
tst_tape/keiko.vit \
|
|
|
|
|
tst_tape/empty.vit \
|
|
|
|
|
tst_tape/all_measurements_v0.3.0.vit \
|
|
|
|
|
tst_tape/all_measurements_v0.4.0.vst \
|
|
|
|
|
tst_tape/GOST_man_ru_v0.3.0.vst \
|
|
|
|
|
tst_tape/all_measurements_v0.3.3.vit \
|
|
|
|
|
tst_tape/all_measurements_v0.4.2.vst \
|
|
|
|
|
tst_tape/GOST_man_ru_v0.4.2.vst \
|
|
|
|
|
tst_tape/broken1.vit \
|
|
|
|
|
tst_tape/broken2.vit \
|
|
|
|
|
tst_tape/broken3.vit \
|
|
|
|
|
tst_tape/broken4.vit \
|
|
|
|
|
tst_tape/text.vit \
|
|
|
|
|
tst_tape/text.vst
|
|
|
|
|
|
|
|
|
|
VALENTINA_TEST_FILES += \
|
|
|
|
|
tst_valentina/empty.val \
|
|
|
|
|
tst_valentina/issue_372.val \
|
|
|
|
|
tst_valentina/wrong_obj_type.val \
|
|
|
|
|
tst_valentina/text.val \
|
|
|
|
|
tst_valentina/glimited_no_m.val \
|
|
|
|
|
tst_valentina/glimited_vit.val \
|
|
|
|
|
tst_valentina/glimited.vit \
|
|
|
|
|
tst_valentina/glimited_vst.val \
|
|
|
|
|
tst_valentina/glimited.vst \
|
|
|
|
|
tst_valentina/issue_256.val \
|
|
|
|
|
tst_valentina/issue_256_wrong_path.val \
|
|
|
|
|
tst_valentina/issue_256_correct.vit \
|
|
|
|
|
tst_valentina/issue_256_wrong.vit \
|
|
|
|
|
tst_valentina/issue_256_correct.vst \
|
|
|
|
|
tst_valentina/issue_256_wrong.vit \
|
|
|
|
|
tst_valentina/wrong_formula.val
|
|
|
|
|
|
|
|
|
|
COLLECTION_FILES += \
|
2017-07-12 20:21:48 +02:00
|
|
|
|
$${PWD}/../../app/share/tables/multisize/GOST_man_ru.vst \
|
2016-08-04 19:10:12 +02:00
|
|
|
|
$${PWD}/../../app/share/collection/bra.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/bra.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ1_52-176.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ2_40-146.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ3_40-146.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ4_40-146.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ5_30-110.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/jacketМ6_30-110.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/pantsМ1_52-176.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/pantsМ2_40-146.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/pantsМ7.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/TShirt_test.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/TestDart.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/patrón_blusa.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/blusa.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/PajamaTopWrap2.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/Susan.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/Moulage_0.5_armhole_neckline.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/0.7_Armhole_adjustment_0.10.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/my_calculated_measurements_for_val.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/Keiko_skirt.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/keiko.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/medidas_eli2015.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/pantalon_base_Eli.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/Razmernye_priznaki_dlya_zhenskogo_zhaketa.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/IMK_Zhaketa_poluprilegayuschego_silueta.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/Lara_Jil.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/modell_2.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/MaleShirt/MaleShirt.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/MaleShirt/MaleShirt.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/Trousers/Trousers.val \
|
2016-09-14 15:23:48 +02:00
|
|
|
|
$${PWD}/../../app/share/collection/Trousers/trousers.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/Steampunk_trousers.val \
|
2016-09-23 18:17:25 +02:00
|
|
|
|
$${PWD}/../../app/share/collection/Steampunk_trousers.vit \
|
|
|
|
|
$${PWD}/../../app/share/collection/Basic_block_women-2016.val \
|
|
|
|
|
$${PWD}/../../app/share/collection/Gent_Jacket_with_tummy.val
|
2016-08-04 19:10:12 +02:00
|
|
|
|
|
|
|
|
|
# Compilation will fail without this files after we added them to this section.
|
|
|
|
|
OTHER_FILES += \
|
|
|
|
|
$$TAPE_TEST_FILES \
|
|
|
|
|
$$VALENTINA_TEST_FILES \
|
|
|
|
|
$$COLLECTION_FILES
|
|
|
|
|
|
|
|
|
|
for(DIR, TAPE_TEST_FILES) {
|
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
|
|
|
|
tape_path += $${PWD}/$$DIR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copyToDestdir($$tape_path, $$shell_path($${OUT_PWD}/$$DESTDIR/tst_tape))
|
|
|
|
|
|
|
|
|
|
for(DIR, VALENTINA_TEST_FILES) {
|
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
|
|
|
|
valentina_path += $${PWD}/$$DIR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copyToDestdir($$valentina_path, $$shell_path($${OUT_PWD}/$$DESTDIR/tst_valentina))
|
|
|
|
|
|
|
|
|
|
for(DIR, COLLECTION_FILES) {
|
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
|
|
|
|
collection_path += $$DIR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
copyToDestdir($$collection_path, $$shell_path($${OUT_PWD}/$$DESTDIR/tst_valentina_collection))
|