原文链接:https://www.yuque.com/cpptd/cmake/tifr91
cmake系列笔记:https://www.yuque.com/cpptd/cmake
include(CheckLanguage)
check_language( CSharp )
if( CMAKE_CSharp_COMPILER )
enable_language( CSharp )
set(CMAKE_SUPPORTS_CSHARP TRUE)
else()
set(CMAKE_SUPPORTS_CSHARP FALSE)
endif()