-
Notifications
You must be signed in to change notification settings - Fork 1
/
CommonLibs.pri
53 lines (44 loc) · 1.33 KB
/
CommonLibs.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
INCLUDEPATH+=$$PWD
DEPENDPATH+=$$PWD
#include($$PWD/CommonLibs.pro)
HEADERS += \
$$PWD/pugixml/pugiconfig.hpp \
$$PWD/cpp17optional/optional.hpp \
$$PWD/plog/Log.h \
$$PWD/pugixml/pugixml.hpp \
$$PWD/ConditionalSemaphore/conditionalsemaphore.h
SOURCES += \
$$PWD/pugixml/pugixml.cpp \
$$PWD/ConditionalSemaphore/conditionalsemaphore.cpp
contains(QT, gui){
SOURCES += \
$$PWD/jsonhighlighter/highlighter.cpp \
$$PWD/BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.cpp \
$$PWD/CustomTreeWidget/customtreewidget.cpp \
$$PWD/LineNumberDisplay/LineNumberDisplay.cpp
}
contains(QT, gui){
HEADERS += \
$$PWD/jsonhighlighter/highlighter.h \
$$PWD/BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.h \
$$PWD/CustomTreeWidget/customtreewidget.h \
$$PWD/LineNumberDisplay/LineNumberDisplay.h
}
# Extra libs
quazip {
LIBS += -L$$PWD/zlib-1.2.8 -lz
win32 {
LIBS += -L$$PWD/quazip-0.7.2/quazip/release -lquazip
}
macx {
LIBS += -L$$PWD/quazip-0.7.2/quazip -lquazip
}
INCLUDEPATH += $$PWD/zlib-1.2.8 \
$$PWD/quazip-0.7.2/quazip
}
contains(QT, gui){
INCLUDEPATH += \
$$PWD/CustomTreeWidget # this one is global so we can use it to promote widgets in qt creator
}
# (http://stackoverflow.com/questions/18471827/qtcreator-cant-find-the-class-header-file-after-promoting-a-widget-to-that-clas)
# $$PWD/pugixml