From 3b05b33ff30b49ab0a3c4500d9d11c700bdc1a02 Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Tue, 30 Jun 2026 22:21:31 +0200 Subject: Add Third project: two-file executable with globbing for *.cs via CONFIGURE_DEPENDS --- third/CMakeLists.txt | 8 ++++++++ third/Other.cs | 14 ++++++++++++++ third/Program.cs | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 third/CMakeLists.txt create mode 100644 third/Other.cs create mode 100644 third/Program.cs (limited to 'third') 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(); + } +} -- cgit v1.2.3