CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine)

IF (TD_WINDOWS_64 OR TD_WINDOWS_32)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/pthread)
  INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
  INCLUDE_DIRECTORIES(inc)
  AUX_SOURCE_DIRECTORY(src SRC)
  ADD_LIBRARY(os ${SRC})
  TARGET_LINK_LIBRARIES(os winmm IPHLPAPI ws2_32)
ENDIF ()
