Merge pull request #41 from dmacvicar/master
[platform/upstream/libsolv.git] / bindings / CMakeLists.txt
1 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
2
3 FIND_PACKAGE (SWIG)
4
5 MESSAGE (STATUS "Found SWIG version ${SWIG_VERSION}")
6 SET (SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/solv.i")
7
8 IF (ENABLE_PYTHON)
9     ADD_SUBDIRECTORY (python)
10 ENDIF (ENABLE_PYTHON)
11 IF (ENABLE_PERL)
12     ADD_SUBDIRECTORY (perl)
13 ENDIF (ENABLE_PERL)
14 IF (ENABLE_RUBY)
15     ADD_SUBDIRECTORY (ruby)
16 ENDIF (ENABLE_RUBY)