mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
44 lines
1.1 KiB
CMake
Executable File
44 lines
1.1 KiB
CMake
Executable File
cmake_minimum_required(VERSION 3.2)
|
|
|
|
project(tars-cpp)
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
if("${TARS_CPP_COMMON}" STREQUAL "")
|
|
|
|
set(TARS_CPP_COMMON "1")
|
|
|
|
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(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)
|
|
add_subdirectory(examples)
|
|
|
|
#add_subdirectory(test_deprecated)
|
|
|
|
|