add options to turn off py/lua build
authorTomi Valkeinen <tomi.valkeinen@iki.fi>
Wed, 30 Sep 2015 19:38:28 +0000 (22:38 +0300)
committerTomi Valkeinen <tomi.valkeinen@iki.fi>
Thu, 1 Oct 2015 16:40:22 +0000 (19:40 +0300)
CMakeLists.txt

index 433418e1414b6a1d34aa4c043c8cae06a5497090..8a20996a77a9e2c5603ab11893715a5b5bd6b01c 100644 (file)
@@ -7,6 +7,8 @@ IF(NOT CMAKE_BUILD_TYPE)
       FORCE)
 ENDIF(NOT CMAKE_BUILD_TYPE)
 
+set(LIBKMS_ENABLE_PYTHON ON CACHE BOOL "Enable Python wrappers")
+set(LIBKMS_ENABLE_LUA ON CACHE BOOL "Enable Lua wrappers")
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
 
@@ -22,6 +24,11 @@ enable_testing()
 
 add_subdirectory(libkms++)
 add_subdirectory(tests)
-add_subdirectory(py)
-add_subdirectory(lua)
 
+if(LIBKMS_ENABLE_PYTHON)
+        add_subdirectory(py)
+endif()
+
+if(LIBKMS_ENABLE_LUA)
+        add_subdirectory(lua)
+endif()