summaryrefslogtreecommitdiffstats
path: root/third
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 22:21:31 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 22:21:31 +0200
commit3b05b33ff30b49ab0a3c4500d9d11c700bdc1a02 (patch)
treec60648fd5e6dcf8007e904839384e3de0a9c4020 /third
parent4470bda7f8f49bc8675889ef03ee4ef01f5a33cc (diff)
downloadcsharp-cmake-3b05b33ff30b49ab0a3c4500d9d11c700bdc1a02.tar.gz
csharp-cmake-3b05b33ff30b49ab0a3c4500d9d11c700bdc1a02.zip
Add Third project: two-file executable with globbing for *.cs via CONFIGURE_DEPENDS
Diffstat (limited to 'third')
-rw-r--r--third/CMakeLists.txt8
-rw-r--r--third/Other.cs14
-rw-r--r--third/Program.cs10
3 files changed, 32 insertions, 0 deletions
diff --git a/third/CMakeLists.txt b/third/CMakeLists.txt
new file mode 100644
index 0000000..df0b157
--- /dev/null
+++ b/third/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_dotnet_target(Third)
+
+file(GLOB THIRD_SOURCES CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cs)
+
+add_dotnet_executable(Third
+ MAIN Program
+ SOURCES ${THIRD_SOURCES}
+)
diff --git a/third/Other.cs b/third/Other.cs
new file mode 100644
index 0000000..fbad5b6
--- /dev/null
+++ b/third/Other.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace Third
+{
+ public static class Other
+ {
+ public static void Haiku()
+ {
+ Console.WriteLine("Bugs in the code");
+ Console.WriteLine("Winter compiles silently");
+ Console.WriteLine("Spring runs with no bugs");
+ }
+ }
+}
diff --git a/third/Program.cs b/third/Program.cs
new file mode 100644
index 0000000..1afea0d
--- /dev/null
+++ b/third/Program.cs
@@ -0,0 +1,10 @@
+using System;
+
+class Program
+{
+ static void Main()
+ {
+ Console.WriteLine("Third Project");
+ Third.Other.Haiku();
+ }
+}