summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-11 12:01:24 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-11 12:01:24 (GMT)
commit7fc92e626b844dd9cc3c6a498ee20a72be84819b (patch)
tree80301e7ff2189d263d8edbb959b3c01ce1dd010f /src/CMakeLists.txt
parent58c8f0daff6fb26e620c53ca7448f07a05394e59 (diff)
downloadlibkolabxml-7fc92e626b844dd9cc3c6a498ee20a72be84819b.tar.gz
Don't build bindings by default, only if explicitly requested with the appropriate switch
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4822d31..279b875 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,12 +42,24 @@ IF("${isSystemDir}" STREQUAL "-1")
ENDIF("${isSystemDir}" STREQUAL "-1")
#-----------------------SWIG--------------------
-
+# Building of the bindings can be controlled using the switches along the lines of: cmake -DPHP_BINDINGS=TRUE -DCSHARP_BINDINGS=FALSE ..
if (SWIG_FOUND)
- add_subdirectory(csharp)
- add_subdirectory(java)
- add_subdirectory(python)
- add_subdirectory(php)
+ if(CSHARP_BINDINGS)
+ message("building csharp bindings")
+ add_subdirectory(csharp)
+ endif(CSHARP_BINDINGS)
+ if(JAVA_BINDINGS)
+ message("building java bindings")
+ add_subdirectory(java)
+ endif(JAVA_BINDINGS)
+ if(PYTHON_BINDINGS)
+ message("building python bindings")
+ add_subdirectory(python)
+ endif(PYTHON_BINDINGS)
+ if(PHP_BINDINGS)
+ message("building php bindings")
+ add_subdirectory(php)
+ endif(PHP_BINDINGS)
else()
message(WARNING "Could not build SWIG bindings, because SWIG is missing.")
endif()