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

S
Shengliang Guan 已提交
4
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/rpc/inc)
S
slguan 已提交
5

6
IF (TD_LINUX)
S
slguan 已提交
7 8 9 10
  LIST(APPEND CLIENT_SRC ./rclient.c)
  ADD_EXECUTABLE(rclient ${CLIENT_SRC})
  TARGET_LINK_LIBRARIES(rclient trpc)

11 12 13 14
  LIST(APPEND SCLIENT_SRC ./rsclient.c)
  ADD_EXECUTABLE(rsclient ${SCLIENT_SRC})
  TARGET_LINK_LIBRARIES(rsclient trpc)

S
slguan 已提交
15 16 17
  LIST(APPEND SERVER_SRC ./rserver.c)
  ADD_EXECUTABLE(rserver ${SERVER_SRC})
  TARGET_LINK_LIBRARIES(rserver trpc)
S
slguan 已提交
18
ENDIF ()
19 20 21 22 23 24 25 26 27 28 29 30 31 32

IF (TD_DARWIN)
  LIST(APPEND CLIENT_SRC ./rclient.c)
  ADD_EXECUTABLE(rclient ${CLIENT_SRC})
  TARGET_LINK_LIBRARIES(rclient trpc)

  LIST(APPEND SCLIENT_SRC ./rsclient.c)
  ADD_EXECUTABLE(rsclient ${SCLIENT_SRC})
  TARGET_LINK_LIBRARIES(rsclient trpc)

  LIST(APPEND SERVER_SRC ./rserver.c)
  ADD_EXECUTABLE(rserver ${SERVER_SRC})
  TARGET_LINK_LIBRARIES(rserver trpc)
ENDIF ()