CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) IF (TD_CLUSTER) ADD_DEFINITIONS(-D_CLUSTER) ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=1) ELSE () ADD_DEFINITIONS(-DLITE) ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=1) ENDIF () IF (TD_ACCOUNT) ADD_DEFINITIONS(-D_ACCOUNT) ENDIF () IF (TD_GRANT) ADD_DEFINITIONS(-D_GRANT) ENDIF () IF (TD_GODLL) ADD_DEFINITIONS(-D_TD_GO_DLL_) ENDIF () IF (TD_MEM_CHECK) ADD_DEFINITIONS(-DTAOS_MEM_CHECK) ENDIF ()