Commit fd0db31b authored by Ingmar Vanhassel's avatar Ingmar Vanhassel

Add a CMake option to disable python bindings

parent e3a41876
......@@ -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" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment