From 1c9acabddfdce47a1b7db9275215450802ac709a Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Tue, 30 Jun 2026 21:34:48 +0200 Subject: Add Second executable with Baz dependency --- CMakeLists.txt | 1 + second/CMakeLists.txt | 6 ++++++ second/Program.cs | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 second/CMakeLists.txt create mode 100644 second/Program.cs diff --git a/CMakeLists.txt b/CMakeLists.txt index c026b79..5010dcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,3 +14,4 @@ add_subdirectory(chello) add_subdirectory(baz) add_subdirectory(foobar) add_subdirectory(hello) +add_subdirectory(second) 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(); + } +} -- cgit v1.2.3