From 4278fced578920c4b9c1ffe0862e94d90430b227 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 9 Feb 2009 20:44:11 +0100 Subject: Add a cmake build system. --- swig/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 swig/CMakeLists.txt (limited to 'swig') diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt new file mode 100644 index 0000000..28d7aed --- /dev/null +++ b/swig/CMakeLists.txt @@ -0,0 +1,14 @@ +INCLUDE( ${SWIG_USE_FILE} ) + +SET(CMAKE_SWIG_FLAGS -Werror -Wall -modern) + +INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_PATH} ) + +SWIG_ADD_MODULE( PList python plist.i ) +SWIG_LINK_LIBRARIES( PList plist ${PYTHON_LIBRARIES} ) + +INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/_PList${CMAKE_SHARED_MODULE_SUFFIX} + DESTINATION ${LIB_INSTALL_DIR}/python${PYTHON_VERSION}/site-packages/ ) +INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/__init__.py + DESTINATION ${LIB_INSTALL_DIR}/python${PYTHON_VERSION}/site-packages/ ) + -- cgit v1.1-32-gdbae