Allow use of boost libs which are located in /opt/boost by setting PREFIX (for header and lib).
This commit is contained in:
@@ -52,6 +52,11 @@ win32 {
|
|||||||
debug:LIBPATH += debug/lib
|
debug:LIBPATH += debug/lib
|
||||||
release:LIBPATH += release/lib
|
release:LIBPATH += release/lib
|
||||||
}
|
}
|
||||||
|
!win32{
|
||||||
|
##### My release static build options
|
||||||
|
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
INCLUDEPATH += $${PREFIX}/include
|
||||||
|
}
|
||||||
mac {
|
mac {
|
||||||
# make it universal
|
# make it universal
|
||||||
CONFIG += x86
|
CONFIG += x86
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# QMake pro-file for PokerTH db library
|
# QMake pro-file for PokerTH db library
|
||||||
|
|
||||||
|
isEmpty( PREFIX ){
|
||||||
|
PREFIX =/usr
|
||||||
|
}
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CODECFORSRC = UTF-8
|
CODECFORSRC = UTF-8
|
||||||
|
|
||||||
@@ -44,6 +48,7 @@ win32{
|
|||||||
!win32{
|
!win32{
|
||||||
##### My release static build options
|
##### My release static build options
|
||||||
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
INCLUDEPATH += $${PREFIX}/include
|
||||||
}
|
}
|
||||||
|
|
||||||
mac{
|
mac{
|
||||||
|
|||||||
@@ -372,6 +372,8 @@ unix:!mac {
|
|||||||
# QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
# QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
||||||
# QMAKE_LFLAGS += -Wl,--gc-sections
|
# QMAKE_LFLAGS += -Wl,--gc-sections
|
||||||
LIBPATH += lib
|
LIBPATH += lib
|
||||||
|
LIBPATH += $${PREFIX}/lib
|
||||||
|
INCLUDEPATH += $${PREFIX}/include
|
||||||
LIB_DIRS = $${PREFIX}/lib \
|
LIB_DIRS = $${PREFIX}/lib \
|
||||||
$${PREFIX}/lib64
|
$${PREFIX}/lib64
|
||||||
BOOST_FS = boost_filesystem \
|
BOOST_FS = boost_filesystem \
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# QMake pro-file for PokerTH common library
|
# QMake pro-file for PokerTH common library
|
||||||
|
|
||||||
|
isEmpty( PREFIX ){
|
||||||
|
PREFIX =/usr
|
||||||
|
}
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CODECFORSRC = UTF-8
|
CODECFORSRC = UTF-8
|
||||||
|
|
||||||
@@ -227,6 +231,7 @@ win32{
|
|||||||
!win32{
|
!win32{
|
||||||
##### My release static build options
|
##### My release static build options
|
||||||
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
INCLUDEPATH += $${PREFIX}/include
|
||||||
}
|
}
|
||||||
|
|
||||||
mac{
|
mac{
|
||||||
|
|||||||
+2
-1
@@ -193,7 +193,8 @@ unix : !mac {
|
|||||||
#QMAKE_LFLAGS += -Wl,--gc-sections
|
#QMAKE_LFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
LIBPATH += lib
|
LIBPATH += lib
|
||||||
|
LIBPATH += $${PREFIX}/lib
|
||||||
|
INCLUDEPATH += $${PREFIX}/include
|
||||||
LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64
|
LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64
|
||||||
BOOST_FS = boost_filesystem boost_filesystem-mt
|
BOOST_FS = boost_filesystem boost_filesystem-mt
|
||||||
BOOST_THREAD = boost_thread boost_thread-mt
|
BOOST_THREAD = boost_thread boost_thread-mt
|
||||||
|
|||||||
Reference in New Issue
Block a user