1 Star 0 Fork 51

/TarsCpp

forked from TarsCloud/TarsCpp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
ruanshudong 提交于 2021-08-23 15:39 . unittest->unit-test
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()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/jinMayun/TarsCpp.git
[email protected]:jinMayun/TarsCpp.git
jinMayun
TarsCpp
TarsCpp
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385