add_dotnet_library(FooBar SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/FooBar.cs ) target_link_dotnet_libraries(FooBar PUBLIC Baz)