代码拉取完成,页面将自动刷新
同步操作将从 TarsCloud/TarsCpp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.2)
project(tars-cpp)
#-------------------------------------------------------------------
if("${TARS_CPP_COMMON}" STREQUAL "")
set(TARS_CPP_COMMON "1")
include("${PROJECT_SOURCE_DIR}/cmake/GenVersion.cmake")
include("${PROJECT_SOURCE_DIR}/cmake/Common.cmake")
include("${PROJECT_SOURCE_DIR}/cmake/BuildTarsCpp.cmake")
include("${PROJECT_SOURCE_DIR}/cmake/Thirdparty.cmake")
include("${PROJECT_SOURCE_DIR}/cmake/ParseAsm.cmake")
endif()
# set(major "")
# set(minor "")
# set(patch "")
# get_version(major minor patch)
# set(TARS_VERSION ${major}.${minor}.${patch})
add_definitions(-DTARS_VERSION="${TARS_VERSION}")
message("TARS_VERSION: ${TARS_VERSION}")
set(CLEAR_INCLUDE "clear-install.cmake")
FILE(WRITE ${CLEAR_INCLUDE} "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include)\n")
install(SCRIPT ${CLEAR_INCLUDE})
#-------------------------------------------------------------------
include_directories(${PROJECT_SOURCE_DIR}/util/include)
include_directories(${PROJECT_SOURCE_DIR}/servant)
include_directories(${PROJECT_SOURCE_DIR}/servant/protocol)
IF(WIN32)
include_directories(${PROJECT_SOURCE_DIR}/util/src/epoll_windows)
ENDIF()
add_subdirectory(util)
add_subdirectory(tools)
add_subdirectory(servant)
IF (NOT ${ONLY_LIB})
add_subdirectory(examples)
add_subdirectory(unit-test)
ENDIF()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。