blob: 251b5b5e152cb6bd83229807509b728251edd36e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#
# 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)
|