From ba853e936dd33f32291b2958c13530d5796b575c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 30 Sep 2015 22:38:28 +0300 Subject: add options to turn off py/lua build --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 433418e..8a20996 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- cgit v1.2.3