summaryrefslogtreecommitdiffstats
path: root/second
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 21:34:48 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-06-30 21:34:48 +0200
commit1c9acabddfdce47a1b7db9275215450802ac709a (patch)
tree05794fb72c843a52f44473a6526aee140376f56d /second
parent793748246133423bab93258375a45f3c0ad363b2 (diff)
downloadcsharp-cmake-1c9acabddfdce47a1b7db9275215450802ac709a.tar.gz
csharp-cmake-1c9acabddfdce47a1b7db9275215450802ac709a.zip
Add Second executable with Baz dependency
Diffstat (limited to 'second')
-rw-r--r--second/CMakeLists.txt6
-rw-r--r--second/Program.cs9
2 files changed, 15 insertions, 0 deletions
diff --git a/second/CMakeLists.txt b/second/CMakeLists.txt
new file mode 100644
index 0000000..20703c6
--- /dev/null
+++ b/second/CMakeLists.txt
@@ -0,0 +1,6 @@
+add_dotnet_executable(Second
+ MAIN Program
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Program.cs
+)
+
+target_link_dotnet_libraries(Second PRIVATE Baz)
diff --git a/second/Program.cs b/second/Program.cs
new file mode 100644
index 0000000..e83e205
--- /dev/null
+++ b/second/Program.cs
@@ -0,0 +1,9 @@
+using System;
+
+class Program
+{
+ static void Main()
+ {
+ Baz.Print();
+ }
+}