blob: f080edd3d26380033ed7dd219ebf2dbe663c207e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
enable_language(CSharp)
if(NOT CMAKE_CSharp_COMPILER)
return()
endif()
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk")
add_library(foo SHARED lib1.cs)
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk.Web")
add_library(bar SHARED lib1.cs)
set(CMAKE_DOTNET_SDK "")
add_library(baz SHARED lib1.cs)
|