-
Notifications
You must be signed in to change notification settings - Fork 128
/
geometrize.pro
71 lines (53 loc) · 2.03 KB
/
geometrize.pro
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
QT += core gui network svg
greaterThan(QT_MAJOR_VERSION, 5) {
QT += svgwidgets
}
TARGET = Geometrize
TEMPLATE = app
# Put intermediate files in separate folders to keep the build directory tidy
OBJECTS_DIR = obj
MOC_DIR = qt_gen
RCC_DIR = qt_gen
UI_DIR = qt_gen
# Enable C++17 features
CONFIG += c++17
# Disable assertions in release builds (for gcc, clang etc builds)
CONFIG(release, debug|release): DEFINES += NDEBUG
# Flag for ChaiScript linking
# Note that mingw32 builds may not work with the compiled-in stdlib because of a "too many sections error" with Chaiscript
msvc:QMAKE_CXXFLAGS += -bigobj
# Options for the Mac AppStore version of Geometrize
macx {
include($$PWD/osx/geometrize_osx.pri)
}
# Some versions of gcc have linker issues like:
# //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
linux {
*-g++* {
LIBS += -ldl
}
}
# Include library dependencies
INCLUDEPATH += $$PWD/lib/cereal/include \
$$PWD/lib/chaiscript/include
include($$PWD/lib/geometrize/geometrize/geometrize.pri)
include($$PWD/lib/burstlinker/burstlinker.pri)
# Optional support for WebSocket connections for sending and receiving
# images/data. Uses Boost, see https://github.com/Tw1ddle/dataslinger-lib
#CONFIG += DATASLINGER_INCLUDED
#DEFINES += DATASLINGER_INCLUDED
DATASLINGER_INCLUDED {
# Include Boost - you will need to set your own path
INCLUDEPATH += C:/Development/boost_1_68_0/
DEPENDPATH += C:/Development/boost_1_68_0/
# Include Boost libs
LIBS += "-LC:/Development/boost_1_68_0/stage/x64/lib/"
include($$PWD/lib/dataslinger/dataslinger.pri)
}
# Include the Geometrize headers, sources, UI forms
include($$PWD/geometrize/sources.pri)
# Generate localization TS files and then binary QM files, which it puts into the resources folder
include($$PWD/translations/translations.pri)
# Include resources that Geometrize requires, such as icons, images and scripts
# Note this must come last, as resource files are automatically generated
include($$PWD/resources/resources.pri)