forked from TarsCloud/TarsCpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·39 lines (22 loc) · 905 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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()
#-------------------------------------------------------------------
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)