From 824e51ded701b96bb830cfaad79ce4d9be8f5b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lund?= Date: Thu, 22 Oct 2020 23:31:45 +0200 Subject: [PATCH] Set up .csproj for bindings which automatically places .dll/.so/.dylib in output directory --- bindings_csharp/CMakeLists.txt | 4 ++- .../CoatiSoftware.SourcetrailDB.csproj | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 bindings_csharp/CoatiSoftware.SourcetrailDB.csproj diff --git a/bindings_csharp/CMakeLists.txt b/bindings_csharp/CMakeLists.txt index 32e5f4d..5e02b7d 100644 --- a/bindings_csharp/CMakeLists.txt +++ b/bindings_csharp/CMakeLists.txt @@ -38,4 +38,6 @@ set_target_properties(${CSHARP_BINDING_TARGET_NAME} PROPERTIES OUTPUT_NAME ${CSHARP_BINDING_TARGET_OUTPUT_NAME} SWIG_FLAGS ${CSHARP_BINDINGS_NAMESPACE}) -swig_link_libraries(${CSHARP_BINDING_TARGET_NAME} ${CSHARP_LIBRARIES} ${LIB_CORE_TARGET_NAME}) \ No newline at end of file +swig_link_libraries(${CSHARP_BINDING_TARGET_NAME} ${CSHARP_LIBRARIES} ${LIB_CORE_TARGET_NAME}) + +configure_file("CoatiSoftware.SourcetrailDB.csproj" "CoatiSoftware.SourcetrailDB.csproj" COPYONLY) \ No newline at end of file diff --git a/bindings_csharp/CoatiSoftware.SourcetrailDB.csproj b/bindings_csharp/CoatiSoftware.SourcetrailDB.csproj new file mode 100644 index 0000000..486733c --- /dev/null +++ b/bindings_csharp/CoatiSoftware.SourcetrailDB.csproj @@ -0,0 +1,27 @@ + + + + netstandard2.0 + + + + + PreserveNewest + SourcetrailDB.dll + + + + + + PreserveNewest + SourcetrailDB.so + + + + + + PreserveNewest + SourcetrailDB.dylib + + +