CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

IF (TD_CLUSTER)
  ADD_DEFINITIONS(-D_CLUSTER)
ENDIF ()

IF (TD_MPEER)
  ADD_DEFINITIONS(-D_MPEER)
ENDIF ()

IF (TD_VPEER)
  ADD_DEFINITIONS(-D_VPEER)
  #ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=3)
ELSE ()
  #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 ()
