diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-06-30 21:34:48 +0200 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2026-06-30 21:34:48 +0200 |
| commit | 1c9acabddfdce47a1b7db9275215450802ac709a (patch) | |
| tree | 05794fb72c843a52f44473a6526aee140376f56d | |
| parent | 793748246133423bab93258375a45f3c0ad363b2 (diff) | |
| download | csharp-cmake-1c9acabddfdce47a1b7db9275215450802ac709a.tar.gz csharp-cmake-1c9acabddfdce47a1b7db9275215450802ac709a.zip | |
Add Second executable with Baz dependency
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | second/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | second/Program.cs | 9 |
3 files changed, 16 insertions, 0 deletions
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(); + } +} |
