CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

IF (TD_WINDOWS_64 OR TD_WINDOWS_32)
  LIST(APPEND SRC iconv.c)
  LIST(APPEND SRC localcharset.c)
  INCLUDE_DIRECTORIES(.)
  ADD_LIBRARY(iconv ${SRC})
ENDIF ()