summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Ingmar Vanhassel2009-10-29 15:13:17 +0100
committerGravatar Ingmar Vanhassel2009-10-29 15:13:17 +0100
commitfd0db31b3d1cda4c7ef263a4c9338f42217e8eb2 (patch)
tree616afba216ab3788e03d3099db3c4a5a9935aa5c /CMakeLists.txt
parente3a41876ddcdf29db9cd3bae606c40c09b6c6192 (diff)
downloadlibplist-fd0db31b3d1cda4c7ef263a4c9338f42217e8eb2.tar.gz
libplist-fd0db31b3d1cda4c7ef263a4c9338f42217e8eb2.tar.bz2
Add a CMake option to disable python bindings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d4b1f46..4055ad3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,9 +17,14 @@ ENDIF(NOT DEFINED CMAKE_INSTALL_LIBDIR)
FIND_PACKAGE( LibXml2 REQUIRED )
FIND_PACKAGE( GLIB2 REQUIRED )
-FIND_PACKAGE( SWIG )
-FIND_PACKAGE( PythonInterp )
-FIND_PACKAGE( PythonLibs )
+
+OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON)
+
+IF(ENABLE_PYTHON)
+ FIND_PACKAGE( SWIG )
+ FIND_PACKAGE( PythonInterp )
+ FIND_PACKAGE( PythonLibs )
+ENDIF(ENABLE_PYTHON)
INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_SOURCE_DIR}/include" )