1 Star 0 Fork 0

张仕森/Doge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
林海峰 提交于 2021-08-09 17:18 . Rewrite Worker::onEvent
# Doge
# yum install openssl-devel
# yum install boost-devel
# yum install boost
# yum install libuuid-devel
# yum install make
# yum install cmake
# yum install gcc-c++
# yum install gcc
# yum install unixODBC unixODBC-devel
# cmake make & make install cpprest
# ./configure make & make install protocbuf
# install msodbcsql
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
PROJECT(Doge)
# ENABLE_TESTING()
# set
set(NACOS_DIR /mnt/e/git/Nacos)
set(CO_DIR /mnt/e/thirdparty/github/co/co)
set(UTILITY_DIR /mnt/e/git/dogeutility)
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${UTILITY_DIR})
# DogeMsg
add_library(DogeMsg STATIC ${CMAKE_SOURCE_DIR}/protobuf/DogeMsg.pb.cc)
target_link_libraries(DogeMsg protobuf)
# Husky
add_library(Husky STATIC ${CMAKE_SOURCE_DIR}/Husky/Husky.cpp ${CMAKE_SOURCE_DIR}/Husky/HuskyImpl.cpp)
target_include_directories(Husky PRIVATE ${CMAKE_SOURCE_DIR}/include/libzmq ${CMAKE_SOURCE_DIR}/include/zmqpp)
target_link_libraries(Husky DogeMsg ${UTILITY_DIR}/build/libDogeUtility.so)
target_link_libraries(Husky ${CMAKE_SOURCE_DIR}/lib/libzmq/libzmq.a gnutls ${CMAKE_SOURCE_DIR}/lib/libsodium.a)
target_link_libraries(Husky ${CMAKE_SOURCE_DIR}/lib/zmqpp/libzmqpp-static.a)
# DogeExport
# add_library(DogeExport STATIC ${CMAKE_SOURCE_DIR}/Doge/DogeExport.cpp)
# target_include_directories(DogeExport PRIVATE ${CMAKE_SOURCE_DIR}/include/libzmq ${CMAKE_SOURCE_DIR}/include/zmqpp)
# Doge
aux_source_directory(${CMAKE_SOURCE_DIR}/Doge DOGE_SRCS)
SET(CMAKE_BUILD_TYPE "Debug")
# SET(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -O0")
add_executable(Doge ${DOGE_SRCS} ${CMAKE_SOURCE_DIR}/include/tinyxml2/tinyxml2.cpp)
target_include_directories(Doge PRIVATE ${CMAKE_SOURCE_DIR}/Doge ${CMAKE_SOURCE_DIR}/include/libzmq ${CMAKE_SOURCE_DIR}/include/zmqpp)
target_include_directories(Doge PRIVATE ${NACOS_DIR})
target_include_directories(Doge PRIVATE ${CO_DIR}/include)
# target_compile_definitions(Doge PRIVATE DMSG_MAP)
target_link_libraries(Doge Husky)
target_link_libraries(Doge ${CMAKE_SOURCE_DIR}/lib/libDisruptor.a)
target_link_libraries(Doge boost_system boost_thread dl)
target_link_libraries(Doge cpprest ssl crypto)
target_link_libraries(Doge log4cplus)
target_link_libraries(Doge ${NACOS_DIR}/build/libNacos.so)
target_link_libraries(Doge ${CO_DIR}/build/lib/libco.a)
# Doged
add_executable(Doged ${CMAKE_SOURCE_DIR}/Doged/Doged.cpp)
# Demo
add_executable(Demo ${CMAKE_SOURCE_DIR}/Demo/Demo.cpp)
target_link_libraries(Demo Husky)
target_link_libraries(Demo cpprest ssl crypto)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhang_shi_sen/Doge.git
git@gitee.com:zhang_shi_sen/Doge.git
zhang_shi_sen
Doge
Doge
master

搜索帮助