CMake区分编译平台
if (CMAKE_HOST_WIN32) set(WINDOWS 1) elseif (CMAKE_HOST_APPLE) set(MACOS 1) elseif (CMAKE_HOST_UNIX) set(LINUX 1) endif ()