CMakeLists.txt 487 字节
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
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 ()