forked from apolukhin/Boost-Cookbook
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.txt
51 lines (43 loc) · 1.47 KB
/
config.txt
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
# This file is used by ALL recipes and it contains ...
# ... QMake specific settings that shall not be modified
TEMPLATE = app
CONFIG += console
CONFIG -= qt
CONFIG += thread
# ... and a big portion of settings that reader may modify:
isEmpty(BOOST_PATH) {
# Path to the Boost.
#BOOST_PATH = /data/boost_1_63_0/
BOOST_PATH = /data/boost/
#BOOST_PATH = /home/antoshkka/experiments/boost_1_63_0/
}
# Compiler to use (comment out to use default one).
#QMAKE_CXX = clang++
# Paths to boost headers and libraries
# (if you are using Linux and installed Boost from repository you may comment out those lines).
INCLUDEPATH += $$BOOST_PATH
QMAKE_RPATHDIR += $$BOOST_PATH/stage/lib
# Boost specific defines.
DEFINES += BOOST_THREAD_VERSION=4
DEFINES += BOOST_ASIO_DISABLE_STD_ATOMIC=1 # Workaround for GCC-4.6 issues with atomics
DEFINES += BOOST_ASIO_DISABLE_HANDLER_TYPE_REQUIREMENTS=1 # Workaround for move-only functors support for ASIO
# Flags to set your compiler into C++03/C++11/C++14 mode.
msvc {
# MSVC compilers
CPP03FLAG =
CPP11FLAG =
CPP14FLAG =
} else {
# all other compilers
CPP03FLAG = -std=c++03
CPP11FLAG = -std=c++0x
CPP14FLAG = -std=c++14
}
# Disabling some annoing warnings and adding paths to the Boost libraries.
msvc {
QMAKE_LFLAGS += /LIBPATH:$$BOOST_PATH/stage/lib
DEFINES += _CRT_SECURE_NO_WARNINGS
} else {
LIBS += -L$$BOOST_PATH/stage/lib
QMAKE_CXXFLAGS += -Wno-deprecated-declarations -Wno-unused-variable
}