# # CMakeLists.txt for libzypp-bindings/swig # # ENABLE_TESTING() SET( SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/zypp.i" ) # # Allow to build only a subset of language bindings via options # OPTION(BUILD_RUBY_BINDINGS "Build Ruby bindings" ON) OPTION(BUILD_PYTHON2_BINDINGS "Build Python 2 bindings" ON) OPTION(BUILD_PERL5_BINDINGS "Build Perl 5 bindings" ON) # # Let's see which target languages are available # FIND_PACKAGE(Ruby) FIND_PACKAGE(PythonLibs) FIND_PACKAGE(Perl) IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH) ADD_SUBDIRECTORY(ruby) ENDIF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH) IF (PYTHON_LIBRARY) ADD_SUBDIRECTORY(python) ENDIF(PYTHON_LIBRARY) #IF (PERL_EXECUTABLE) # ADD_SUBDIRECTORY(perl5) #ENDIF (PERL_EXECUTABLE)