PROJECT(TDengine) IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") CMAKE_MINIMUM_REQUIRED(VERSION 2.8...3.20) ELSE () CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ENDIF () IF (TD_WINDOWS) INCLUDE_DIRECTORIES(include) AUX_SOURCE_DIRECTORY(src SRC) ADD_LIBRARY(MsvcLibXw ${SRC}) ENDIF ()