diff options
author | Arvin Schnell <aschnell@suse.de> | 2007-07-24 09:02:30 +0000 |
---|---|---|
committer | Arvin Schnell <aschnell@suse.de> | 2007-07-24 09:02:30 +0000 |
commit | 2112df27e5e60f0d3b1a79dffec89f0434c32233 (patch) | |
tree | 0deafc200cdb4bf1aacc5d12b1b41950a9440919 /swig/python | |
parent | c50f036fafe19a6e41079ffa03fa8c2bb6417fb5 (diff) | |
download | libzypp-bindings-2112df27e5e60f0d3b1a79dffec89f0434c32233.tar.gz libzypp-bindings-2112df27e5e60f0d3b1a79dffec89f0434c32233.tar.bz2 libzypp-bindings-2112df27e5e60f0d3b1a79dffec89f0434c32233.zip |
- set path where python stuff gets installed
Diffstat (limited to 'swig/python')
-rw-r--r-- | swig/python/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt index 3335d00..d834043 100644 --- a/swig/python/CMakeLists.txt +++ b/swig/python/CMakeLists.txt @@ -2,6 +2,13 @@ FIND_PACKAGE(PythonLibs REQUIRED) MESSAGE( STATUS "Python include path: ${PYTHON_INCLUDE_PATH}" ) +IF(DEFINED LIB) + SET(PYTHON_LIB_PATH "/usr/${LIB}/python2.5/site-package/") +ELSE(DEFINED LIB) + SET(PYTHON_LIB_PATH "/usr/lib/python2.5/site-package/") +ENDIF(DEFINED LIB) +MESSAGE(STATUS "Python lib path: ${PYTHON_LIB_PATH}") + SET( SWIG_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx" ) SET( SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/zypp.i" ) @@ -26,5 +33,6 @@ INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_PATH} ) INCLUDE_DIRECTORIES( ${ZYPP_INCLUDE_DIR} ) TARGET_LINK_LIBRARIES( _zypp ${ZYPP_LIBRARY} ) -# TODO: install +INSTALL(TARGETS _zypp LIBRARY DESTINATION ${PYTHON_LIB_PATH}) +# TODO: also install zypp.py |