File 0001-install-dll-bin.patch of Package mingw64-gl2ps

From 0137450fe29d345b0867a5ae01c3d751398a88dc Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 13 Sep 2018 20:16:00 +0200
Subject: [PATCH] install dll in bin (fix #23)

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ca4419..5f59b51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,7 +142,9 @@ if(OPENGL_FOUND)
     set_target_properties(shared PROPERTIES PREFIX "" IMPORT_PREFIX ""
       IMPORT_SUFFIX ".lib" COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
   endif(WIN32 OR CYGWIN)
-  install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX})
+  install(TARGETS lib shared RUNTIME DESTINATION bin
+                             LIBRARY DESTINATION lib${LIB_SUFFIX}
+                             ARCHIVE DESTINATION lib${LIB_SUFFIX})
 endif(OPENGL_FOUND)
 
 if(WIN32)
-- 
2.18.1

openSUSE Build Service is sponsored by