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/python${PYTHON_VERSION}/site-packages/ ) INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/__init__.py DESTINATION lib/python${PYTHON_VERSION}/site-packages/ )