diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
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" ) |