You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
327 B
15 lines
327 B
enable_language(CSharp)
|
|
|
|
if(NOT CMAKE_CSharp_COMPILER)
|
|
return()
|
|
endif()
|
|
|
|
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk")
|
|
add_custom_command(
|
|
OUTPUT bar.cs
|
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/lib1.cs" bar.cs
|
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/lib1.cs"
|
|
VERBATIM)
|
|
|
|
add_library(foo SHARED bar.cs)
|