CMakeLists.txt 675 字节
Newer Older
T
tickduan 已提交
1 2 3 4 5 6
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

# include
INCLUDE_DIRECTORIES(sz/include)
INCLUDE_DIRECTORIES(zstd/)
T
tickduan 已提交
7
INCLUDE_DIRECTORIES(zstd/common/)
T
tickduan 已提交
8 9 10

# source
AUX_SOURCE_DIRECTORY(sz/src           SRC1)
11
AUX_SOURCE_DIRECTORY(zstd/dictBuilder SRC2)
T
tickduan 已提交
12 13 14 15 16 17
AUX_SOURCE_DIRECTORY(zstd/common      SRC3)
AUX_SOURCE_DIRECTORY(zstd/compress    SRC4)
AUX_SOURCE_DIRECTORY(zstd/decompress  SRC5)
AUX_SOURCE_DIRECTORY(zstd/deprecated  SRC6)
AUX_SOURCE_DIRECTORY(zstd/legacy      SRC7)

T
tickduan 已提交
18

T
tickduan 已提交
19
# archive
20
ADD_LIBRARY(SZ STATIC ${SRC1} ${SRC2} ${SRC3} ${SRC4} ${SRC5} ${SRC6} ${SRC7})
T
tickduan 已提交
21

T
tickduan 已提交
22 23 24 25
# windows ignore warning
IF (TD_WINDOWS)
 SET_TARGET_PROPERTIES(SZ PROPERTIES COMPILE_FLAGS -w)
ENDIF ()
T
tickduan 已提交
26 27