diff options
author | Michael Andres <ma@suse.de> | 2008-07-17 16:05:26 +0000 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2008-07-17 16:05:26 +0000 |
commit | b18ef85f8d1f7dfc1e23f5012a8e66b9f5ebade2 (patch) | |
tree | 18286a758b1caa40dd2371485f5b63d19fba438d /swig/python | |
parent | 45c8745769d4a6d31f67c7159ac9c78744f73ae6 (diff) | |
download | libzypp-bindings-b18ef85f8d1f7dfc1e23f5012a8e66b9f5ebade2.tar.gz libzypp-bindings-b18ef85f8d1f7dfc1e23f5012a8e66b9f5ebade2.tar.bz2 libzypp-bindings-b18ef85f8d1f7dfc1e23f5012a8e66b9f5ebade2.zip |
to cmake 2.6
Diffstat (limited to 'swig/python')
-rw-r--r-- | swig/python/CMakeLists.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt index c48fd2a..25fe7f7 100644 --- a/swig/python/CMakeLists.txt +++ b/swig/python/CMakeLists.txt @@ -1,3 +1,5 @@ +# cmake likes unique target names +SET(WRAP python) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing") @@ -22,18 +24,18 @@ ADD_CUSTOM_COMMAND ( DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i ${CMAKE_CURRENT_SOURCE_DIR}/*.i ) -ADD_CUSTOM_TARGET( glue +ADD_CUSTOM_TARGET( ${WRAP}_glue DEPENDS ${SWIG_OUTPUT} ) -ADD_LIBRARY( _zypp SHARED "${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx" ) -SET_TARGET_PROPERTIES( _zypp PROPERTIES PREFIX "" ) -ADD_DEPENDENCIES( _zypp glue ) +ADD_LIBRARY( ${WRAP}_zypp SHARED "${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx" ) +SET_TARGET_PROPERTIES( ${WRAP}_zypp PROPERTIES PREFIX "" ) +ADD_DEPENDENCIES( ${WRAP}_zypp ${WRAP}_glue ) INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_PATH} ) INCLUDE_DIRECTORIES( ${ZYPP_INCLUDE_DIR} ) -TARGET_LINK_LIBRARIES( _zypp ${ZYPP_LIBRARY} ) +TARGET_LINK_LIBRARIES( ${WRAP}_zypp ${ZYPP_LIBRARY} ) -INSTALL(TARGETS _zypp LIBRARY DESTINATION ${PYTHON_LIB_PATH}) +INSTALL(TARGETS ${WRAP}_zypp LIBRARY DESTINATION ${PYTHON_LIB_PATH}) INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/zypp.py DESTINATION ${PYTHON_LIB_PATH}) |