cmake.options 1.6 KB
Newer Older
H
refact  
Hongze Cheng 已提交
1 2 3
# =========================================================
# Deps options
# =========================================================
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

IF(${TD_WINDOWS})

    MESSAGE("build pthread Win32")
    option(
            BUILD_PTHREAD
            "If build pthread on Windows"
            ON
          )

    MESSAGE("build gnu regex for Windows")
    option(
            BUILD_GNUREGEX
            "If build gnu regex on Windows"
            ON
          )

ENDIF ()

IF(${TD_LINUX} MATCHES TRUE)

H
refact  
Hongze Cheng 已提交
25 26 27 28 29 30
option(
    BUILD_TEST 
    "If build unit tests using googletest" 
    ON
)

31 32
ENDIF ()

H
refact  
Hongze Cheng 已提交
33 34 35 36 37 38 39 40 41
option(
    BUILD_WITH_LEVELDB 
    "If build with leveldb" 
    OFF
)

option(
    BUILD_WITH_ROCKSDB 
    "If build with rocksdb" 
H
more  
Hongze Cheng 已提交
42
    OFF
H
refact  
Hongze Cheng 已提交
43 44
)

H
Hongze Cheng 已提交
45 46 47
option(
    BUILD_WITH_SQLITE
    "If build with sqlite" 
H
more  
Hongze Cheng 已提交
48
    OFF
H
Hongze Cheng 已提交
49 50
)

51 52 53 54 55 56 57 58 59 60
IF(${TD_WINDOWS})
    MESSAGE("Not build BDB on Windows")
ELSE ()
    option(
            BUILD_WITH_BDB
            "If build with BerkleyDB"
            ON
          )

ENDIF ()
H
Hongze Cheng 已提交
61

H
refact  
Hongze Cheng 已提交
62 63 64
option(
    BUILD_WITH_LUCENE 
    "If build with lucene" 
dengyihao's avatar
dengyihao 已提交
65
    off 
H
Hongze Cheng 已提交
66 67
)

dengyihao's avatar
dengyihao 已提交
68

H
Hongze Cheng 已提交
69 70 71 72 73 74
option(
    BUILD_WITH_NURAFT
    "If build with NuRaft" 
    OFF
)

H
Hongze Cheng 已提交
75 76 77
option(
    BUILD_WITH_UV
    "If build with libuv" 
dengyihao's avatar
fix bug  
dengyihao 已提交
78
    ON  
H
Hongze Cheng 已提交
79 80
)

dengyihao's avatar
dengyihao 已提交
81 82 83
option(
    BUILD_WITH_UV_TRANS
    "If build with libuv_trans " 
dengyihao's avatar
fix bug  
dengyihao 已提交
84
    ON 
dengyihao's avatar
dengyihao 已提交
85 86
)

M
Minghao Li 已提交
87 88 89 90 91 92
option(
    BUILD_WITH_CRAFT
    "If build with canonical-raft"
    OFF
)

M
Minghao Li 已提交
93 94 95 96 97 98
option(
    BUILD_WITH_TRAFT
    "If build with traft"
    OFF
)

99 100
IF(${TD_LINUX} MATCHES TRUE)

H
Hongze Cheng 已提交
101 102 103
option(
    BUILD_DEPENDENCY_TESTS 
    "If build dependency tests" 
H
Hongze Cheng 已提交
104
    ON
H
more  
Hongze Cheng 已提交
105 106
)

107 108
ENDIF ()

H
more  
Hongze Cheng 已提交
109 110 111
option(
    BUILD_DOCS
    "If use doxygen build documents" 
H
Hongze Cheng 已提交
112
    OFF
dengyihao's avatar
dengyihao 已提交
113
)
dengyihao's avatar
dengyihao 已提交
114 115

option(
dengyihao's avatar
dengyihao 已提交
116
   BUILD_WITH_INVERTEDINDEX
dengyihao's avatar
dengyihao 已提交
117 118 119
   "If use invertedIndex" 
   ON 
)