代码拉取完成,页面将自动刷新
# 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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。