blob: af1894603485bf718bbc1e2ade663b4a7fe60337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
enable_language(CSharp)
if(NOT CMAKE_CSharp_COMPILER)
return()
endif()
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk")
add_custom_command(
OUTPUT bar.cs
COMMAND copy /A ${CMAKE_CURRENT_SOURCE_DIR}/lib1.cs
bar.cs
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lib1.cs
VERBATIM)
add_library(foo SHARED bar.cs)
|