From 2b178386e0bf22b560819dad94c3820abfeb73e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <me@besser82.io>
Date: Wed, 17 Feb 2016 15:12:36 +0100
Subject: [PATCH] make CSHARP_INSTALL_DIR configurable
---
src/interfaces/csharp_modular/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/interfaces/csharp_modular/CMakeLists.txt b/src/interfaces/csharp_modular/CMakeLists.txt
index 4de60a6..20f8718 100644
--- a/src/interfaces/csharp_modular/CMakeLists.txt
+++ b/src/interfaces/csharp_modular/CMakeLists.txt
@@ -6,12 +6,15 @@ ADD_CUSTOM_COMMAND(TARGET csharp_modular
POST_BUILD
COMMAND "${CSHARP_COMPILER}" /t:library *.cs /out:modshogun.dll
COMMENT "Creating modshogun.dll")
+IF(NOT CSHARP_INSTALL_DIR)
+ SET(CSHARP_INSTALL_DIR "lib/cli/shogun")
+ENDIF(NOT CSHARP_INSTALL_DIR)
SET(CSHARP_MODULAR_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
INSTALL(TARGETS csharp_modular
- LIBRARY DESTINATION lib/cli/shogun
+ LIBRARY DESTINATION ${CSHARP_INSTALL_DIR}
COMPONENT csharp)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/modshogun.dll
- DESTINATION lib/cli/shogun
+ DESTINATION ${CSHARP_INSTALL_DIR}
COMPONENT csharp)