QBind.pro 2.03 KB
Newer Older
1 2 3 4 5 6
#-------------------------------------------------
#
# Project created by QtCreator 2018-06-12T22:10:15
#
#-------------------------------------------------

7 8
QT += widgets

9
TARGET = QBind
10

11
CONFIG += c++11 console
12 13 14 15 16 17 18 19 20 21
CONFIG -= app_bundle

TEMPLATE = app

# 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

22
# C++17 allows replacing 'if /*constexpr*/' with 'if constexpr' with little performance improvement
23 24 25
#gcc:QMAKE_CXXFLAGS += -std=c++1z
#msvc:QMAKE_CXXFLAGS += /std=c++17

26 27 28 29 30
# 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

31
gcc:QMAKE_CXXFLAGS += -ftemplate-backtrace-limit=0
32

33 34 35 36 37 38 39 40 41 42 43 44 45 46
#PROTO_FILE = persons.proto
#protoc.output = $${OUT_PWD}/${QMAKE_FILE_IN_BASE}.pb.cc
#protoc.variable_out = GENERATED_SOURCES
#protoc.input = PROTO_FILE
#win32 {
#    PROTO_PATH = /path/to/protobuf-3.7.1-msvc2019
#    DEFINES += PROTOBUF_USE_DLLS
#    protoc.commands = $${PROTO_PATH}/bin/protoc -I=$$relative_path($${PWD}, $${OUT_PWD}) --cpp_out=. ${QMAKE_FILE_NAME}
#    INCLUDEPATH += $${PROTO_PATH}/include
#    DEPENDPATH += $${PROTO_PATH}/include
#    LIBS += -L$${PROTO_PATH}/lib -llibprotobuf
#}
#QMAKE_EXTRA_COMPILERS += protoc

47
SOURCES += \
48
    QData.cpp \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
49
    QValue.cpp \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
50
    data.cpp \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
51
    main.cpp
52 53

HEADERS += \
54
    QCbor_impl.h \
55
    QData.h \
56
    QJson_impl.h \
57
    QSettings_impl.h \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
58
    QValue.h \
59
    QVariant_impl.h \
60
    QModel_impl.h \
61
    QData_impl.h \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
62 63
    QXml_impl.h \
    data.h
64 65

DISTFILES += \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
66
    DESIGN.md \
67
    README.md \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
68
    persons.proto \
69
    sample.ini \
EXT Arnaud Clère's avatar
EXT Arnaud Clère committed
70
    samples.txt