summaryrefslogtreecommitdiffstats
path: root/foobar
diff options
context:
space:
mode:
Diffstat (limited to 'foobar')
-rw-r--r--foobar/CMakeLists.txt19
1 files changed, 2 insertions, 17 deletions
diff --git a/foobar/CMakeLists.txt b/foobar/CMakeLists.txt
index 87dbba4..ef616c7 100644
--- a/foobar/CMakeLists.txt
+++ b/foobar/CMakeLists.txt
@@ -1,18 +1,3 @@
-set(FOOBAR_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/FooBar.cs)
-set(FOOBAR_OUTPUT ${CMAKE_BINARY_DIR}/FooBar.dll)
-
-add_custom_command(
- OUTPUT ${FOOBAR_OUTPUT}
- COMMAND dotnet ${CSC_DLL}
- -target:library
- -out:${FOOBAR_OUTPUT}
- -lib:${RUNTIME_DIR}
- -reference:System.Private.CoreLib.dll
- -reference:System.Runtime.dll
- -reference:System.Console.dll
- ${FOOBAR_SOURCES}
- DEPENDS ${FOOBAR_SOURCES}
- COMMENT "Compiling FooBar library with Roslyn csc..."
+add_dotnet_library(FooBar
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/FooBar.cs
)
-
-add_custom_target(FooBar ALL DEPENDS ${FOOBAR_OUTPUT})