CMakeLists.txt 443 字节
Newer Older
H
Hongze Cheng 已提交
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
H
hzcheng 已提交
2 3
PROJECT(TDengine)

S
slguan 已提交
4
INCLUDE_DIRECTORIES(${TD_OS_DIR}/inc)
S
slguan 已提交
5 6
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
S
slguan 已提交
7 8
INCLUDE_DIRECTORIES(inc)

L
lihui 已提交
9
IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
S
slguan 已提交
10 11 12
    AUX_SOURCE_DIRECTORY(src SRC)
    ADD_LIBRARY(sdb ${SRC})
    TARGET_LINK_LIBRARIES(sdb trpc)
S
#1177  
slguan 已提交
13
    IF (TD_CLUSTER)
S
slguan 已提交
14
        TARGET_LINK_LIBRARIES(sdb)
S
#1177  
slguan 已提交
15
    ENDIF()
L
lihui 已提交
16
ENDIF ()