|
| 1 | + |
| 2 | +message("Qt version:" $$QT_VERSION) |
| 3 | + |
| 4 | +#versionAtLeast(QT_VERSION, 5.6versionNumber) # introduced in qt 5.10 |
| 5 | +lessThan(QT_MAJOR_VERSION, 5) { |
| 6 | + error("this projet needs Qt version >= Qt 5.12") |
| 7 | +} |
| 8 | + |
| 9 | +equals(QT_MAJOR_VERSION, 5) { |
| 10 | + lessThan(QT_MINOR_VERSION, 12) { |
| 11 | + error("this projet needs Qt version >= Qt 5.12") |
| 12 | + } |
| 13 | +} |
| 14 | + |
| 15 | +# #TagToFindAboutReleaseDeliveryOption |
| 16 | +# RELEASE DELIVERY: |
| 17 | +# |
| 18 | +#CONFIG += release |
| 19 | +#CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT |
| 20 | + |
| 21 | +QT += core |
| 22 | + |
| 23 | +QT += concurrent |
| 24 | + |
| 25 | +#greaterThan(QT_MAJOR_VERSION, 4): |
| 26 | +QT += widgets |
| 27 | + |
| 28 | + |
| 29 | +TARGET = test_ZLIImageBuild |
| 30 | +TEMPLATE = app |
| 31 | + |
| 32 | +# The following define makes your compiler emit warnings if you use |
| 33 | +# any feature of Qt which has been marked as deprecated (the exact warnings |
| 34 | +# depend on your compiler). Please consult the documentation of the |
| 35 | +# deprecated API in order to know how to port your code away from it. |
| 36 | +DEFINES += QT_DEPRECATED_WARNINGS |
| 37 | + |
| 38 | +# You can also make your code fail to compile if you use deprecated APIs. |
| 39 | +# In order to do so, uncomment the following line. |
| 40 | +# You can also select to disable deprecated APIs only up to a certain version of Qt. |
| 41 | +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 |
| 42 | + |
| 43 | +!include( ../thirdpartylibs.pri ) { |
| 44 | + error( "No ../thirdpartylibs.pri file found" ) |
| 45 | +} |
| 46 | + |
| 47 | + |
| 48 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/oiio-RB-2.1/src/include/ |
| 49 | + |
| 50 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/oiio-RB-2.1/buildhere/include/ |
| 51 | + |
| 52 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/oiio-RB-2.1/ext/fmt/include |
| 53 | + |
| 54 | + |
| 55 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/oiio-RB-2.1/buildhere/lib/libOpenImageIO.a |
| 56 | + |
| 57 | +#openexr header installed here: |
| 58 | +INCLUDEPATH += "/usr/local/include/" |
| 59 | + |
| 60 | + |
| 61 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/IlmBase/Imath/ |
| 62 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/config/ #for IlmBaseConfig.h |
| 63 | +INCLUDEPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/IlmBase/Iex/ #for IexBaseExc.h |
| 64 | +DEPENDPATH += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/Imath/ |
| 65 | + |
| 66 | +LIBS += -lz -ldl |
| 67 | + |
| 68 | +#static lib linking: |
| 69 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/Half/libHalf-2_4.a |
| 70 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/OpenEXR/IlmImfUtil/libIlmImfUtil-2_4.a |
| 71 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/OpenEXR/IlmImf/libIlmImf-2_4.a |
| 72 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/IlmThread/libIlmThread-2_4.a |
| 73 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/Iex/libIex-2_4.a |
| 74 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/Imath/libImath-2_4.a |
| 75 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/openexr-2.4.0/buildhere/IlmBase/IexMath/libIexMath-2_4.a |
| 76 | + |
| 77 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_filesystem.a |
| 78 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_system.a |
| 79 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_thread.a |
| 80 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_chrono.a |
| 81 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_date_time.a |
| 82 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/boost170installhere/lib/libboost_atomic.a |
| 83 | + |
| 84 | +LIBS += -lpthread |
| 85 | + |
| 86 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/libpng-1.6.37/.libs/libpng16.a |
| 87 | + |
| 88 | +LIBS += $$INPRO__THIRD_PARTY_LIBS_ROOT/jpeg-8b/.libs/libjpeg.a |
| 89 | + |
| 90 | +LIBS +=-ltiff |
| 91 | + |
| 92 | +LIBS += -lm |
| 93 | + |
| 94 | +CONFIG += c++14 |
| 95 | + |
| 96 | +QMAKE_CXXFLAGS += -std=c++14 |
| 97 | + |
| 98 | +#for debugging : |
| 99 | +#QMAKE_CXXFLAGS += -lefence |
| 100 | + |
| 101 | +INCLUDEPATH += ../../application |
| 102 | +INCLUDEPATH += ../../application/logic |
| 103 | + |
| 104 | +SOURCES += \ |
| 105 | + ../../application/logic/io/ZoomOutLevelImageBuilder.cpp \ |
| 106 | + ../../application/logic/vecttype.cpp \ |
| 107 | + ../../application/logic/toolbox/toolbox_pathAndFile.cpp \ |
| 108 | + ../../application/logic/toolbox/toolbox_json.cpp \ |
| 109 | + ../../application/logic/toolbox/toolbox_conversion.cpp \ |
| 110 | + ../../application/logic/io/iojsoninfos.cpp \ |
| 111 | + ../../application/logic/io/InputImageFormatChecker.cpp \ |
| 112 | + main.cpp |
| 113 | + |
| 114 | +HEADERS += \ |
| 115 | + ../../application/logic/io/ZoomOutLevelImageBuilder.h \ |
| 116 | + ../../application/logic/vecttype.h \ |
| 117 | + ../../application/logic/toolbox/toolbox_pathAndFile.h \ |
| 118 | + ../../application/logic/toolbox/toolbox_json.h \ |
| 119 | + ../../application/logic/toolbox/toolbox_conversion.h \ |
| 120 | + ../../application/logic/io/iojsoninfos.h \ |
| 121 | + ../../application/logic/io/InputImageFormatChecker.h \ |
| 122 | + |
| 123 | +# Default rules for deployment. |
| 124 | +qnx: target.path = /tmp/$${TARGET}/bin |
| 125 | +else: unix:!android: target.path = /opt/$${TARGET}/bin |
| 126 | +!isEmpty(target.path): INSTALLS += target |
0 commit comments