summaryrefslogtreecommitdiffstats
path: root/baz
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 20:56:43 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 20:56:43 +0200
commit9bb17da786318cf6c056bdc8a5bfb100ae7ae81c (patch)
treed05940c8ec6f37799148e034a9a6237dd08ec6d3 /baz
parent914c5024e9005d06bb3f784c2bc230a58483fb9a (diff)
downloadcsharp-cmake-9bb17da786318cf6c056bdc8a5bfb100ae7ae81c.tar.gz
csharp-cmake-9bb17da786318cf6c056bdc8a5bfb100ae7ae81c.zip
Add Baz library with transitive PUBLIC dependency support
Diffstat (limited to 'baz')
-rw-r--r--baz/Baz.cs9
-rw-r--r--baz/CMakeLists.txt3
2 files changed, 12 insertions, 0 deletions
diff --git a/baz/Baz.cs b/baz/Baz.cs
new file mode 100644
index 0000000..f3b017f
--- /dev/null
+++ b/baz/Baz.cs
@@ -0,0 +1,9 @@
+using System;
+
+public class Baz
+{
+ public static void Print()
+ {
+ Console.WriteLine("Baz");
+ }
+}
diff --git a/baz/CMakeLists.txt b/baz/CMakeLists.txt
new file mode 100644
index 0000000..0c8065e
--- /dev/null
+++ b/baz/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_dotnet_library(Baz
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Baz.cs
+)