CMakeLists.txt 733 字节
Newer Older
S
slguan 已提交
1 2 3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

S
Shengliang Guan 已提交
4 5 6 7 8
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/os/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/common/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/rpc/inc)
S
slguan 已提交
9

S
Shengliang Guan 已提交
10
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
S
slguan 已提交
11 12 13 14
  LIST(APPEND CLIENT_SRC ./rclient.c)
  ADD_EXECUTABLE(rclient ${CLIENT_SRC})
  TARGET_LINK_LIBRARIES(rclient trpc)

15 16 17 18
  LIST(APPEND SCLIENT_SRC ./rsclient.c)
  ADD_EXECUTABLE(rsclient ${SCLIENT_SRC})
  TARGET_LINK_LIBRARIES(rsclient trpc)

S
slguan 已提交
19 20 21
  LIST(APPEND SERVER_SRC ./rserver.c)
  ADD_EXECUTABLE(rserver ${SERVER_SRC})
  TARGET_LINK_LIBRARIES(rserver trpc)
S
slguan 已提交
22 23 24
ENDIF ()