1 Star 0 Fork 70

杨悦/FastTrader

forked from liuyinghua/FastTrader 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
boost.pri 3.11 KB
一键复制 编辑 原始数据 按行查看 历史
liuyinghua 提交于 2021-05-21 01:13 . Linux 可以完整运行的版本
CONFIG += plugin c++11
#deepin
linux-g++{
#release version
UNAME =$$system(uname -a)
QMAKE_CFLAGS += -fPIC
QMAKE_CXXFLAGS += -fPIC
QMAKE_LFLAGS += -Wl,-z -Wl,defs
contains(UNAME,[dD]eepin):message(This likes you are use Deepin){
QMAKE_LFLAGS +=-m64 -Wall -D_GLIBCXX_USE_CXX11_ABI=0
QMAKE_CFLAGS += -arch x86_64 -lpthread std=c++11 -stdlib=libc++ -DHAVE_CONFIG_H -D_THREAD_SAFE -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -MT -MD -MP -MF
#path for deepin
INCLUDEPATH += /usr/include/python2.7/
BOOST_ROOT = /media/lyh/DATA/boost_1_69_0
INCLUDEPATH += $$BOOST_ROOT
INCLUDEPATH += /usr/local/ssl/include/
DEFINES += BOOST_ALL_NO_LIB
}else:message(This likes you are use linux){
#QMAKE_LFLAGS +=-m64 -Wall -D_GLIBCXX_USE_CXX11_ABI=0
#QMAKE_CFLAGS += -arch x86_64 -lpthread std=c++11 -stdlib=libc++ -DHAVE_CONFIG_H -D_THREAD_SAFE -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -MT -MD -MP -MF
INCLUDEPATH += /usr/include/python2.7/
BOOST_ROOT = /media/lyh/DATA/boost_1_69_0
INCLUDEPATH += $$BOOST_ROOT
DEFINES += BOOST_ALL_NO_LIB
#LIBS += /media/lyh/DATA/boost_1_69_0/stage/lib
#LIBS += -L/media/lyh/DATA/boost_1_69_0/stage/lib -lboost_thread -lboost_system -lboost_filesystem -lboost_serialization -lboost_python27 -lboost_date_time
LIBS += -L/usr/lib -lpython2.7 -lrt -ldl -lpthread
LIBS += -L/media/lyh/DATA/boost_1_69_0/stage/lib -lboost_system -lboost_filesystem -lboost_thread -lboost_serialization -lboost_python27 -lboost_date_time -lboost_chrono
#QMAKE_LFLAGS += libboost_system.a libboost_filesystem.a libboost_thread.a libboost_serialization libboost_python27.a libboost_date_time.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_system.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_filesystem.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_thread.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_serialization.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_python27.a
# LIBS += $$BOOST_ROOT/stage/lib/libboost_date_time.a
}
}
win32-g++{
INCLUDEPATH += D:\boost_1_69_0
}
macx:message(This likes you are use Mac OSX){
QMAKE_MAC_SDK = macosx10.11
INCLUDEPATH += /usr/local/ssl/include
INCLUDEPATH += /usr/include
INCLUDEPATH += /Users/tony/boost_1_64_0
LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_filesystem.a
LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_system.a
LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_thread.a
#LIBS += /Users/tony/boost_1_64_0/stage/lib/libboost_log.a
INCLUDEPATH += /usr/local/include
QMAKE_LFLAGS += -lstdc++.6.0.9
}
win32-msvc{
message($$PWD)
INCLUDEPATH += D:\boost_1_69_0
LIBS += -LD:\boost_1_69_0\lib32-msvc-14.1 -LD:\Anaconda3\libs
INCLUDEPATH += D:\Anaconda3\include
}
CONFIG(debug, debug|release) {
OBJECTS_DIR = Debug
DESTDIR = ../build/v141/Debug
} else {
OBJECTS_DIR = Release
DESTDIR = ../build/v141/Release
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/aiyt_quantum/FastTrader.git
git@gitee.com:aiyt_quantum/FastTrader.git
aiyt_quantum
FastTrader
FastTrader
master

搜索帮助