libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.15-40-g14c42c4

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 27 Apr 2009 21:55:34 +0200 (CEST)
The branch, master has been updated
       via  14c42c4fb594725518f84ee466fb0ebe739fd5d4 (commit)
      from  fdfee60311accfc15144f88a31e5618e6aaee35a (commit)


- Log -----------------------------------------------------------------
commit 14c42c4fb594725518f84ee466fb0ebe739fd5d4
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Mon Apr 27 21:54:49 2009 +0200

    cmake: Install python binding

-----------------------------------------------------------------------

Summary of changes:
 bindings/CMakeLists.txt |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 5d1061e..7900074 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -10,6 +10,12 @@ if(PYTHONLIBS_FOUND)
     SWIG_ADD_MODULE(ftdi python ftdi.i)
     SWIG_LINK_LIBRARIES(ftdi ${PYTHON_LIBRARIES})
 
-    message(STATUS "Building python bindings via swig")
+    GET_FILENAME_COMPONENT(PYTHON_LIB_INSTALL ${PYTHON_LIBRARY} PATH)
+    GET_FILENAME_COMPONENT(SITEPACKAGE ${PYTHON_LIB_INSTALL}/../site-packages 
ABSOLUTE)
+
+    INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/_ftdi.so DESTINATION 
${SITEPACKAGE})
+    INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ftdi.py DESTINATION 
${SITEPACKAGE})
+
+    message(STATUS "Building python bindings via swig. Will be installed under 
${SITEPACKAGE}")
 endif(PYTHONLIBS_FOUND)
 endif(SWIG_FOUND)


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.15-40-g14c42c4, libftdi-git <=