From f5b4f7c2054baa9080c059fde2944143b0a0f3df Mon Sep 17 00:00:00 2001 From: cuke Date: Sat, 5 Sep 2015 14:19:20 +0200 Subject: [PATCH] [CMake] Bindings are not built by default --- CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c34473..4eed072 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,13 @@ cmake_minimum_required(VERSION 3.0) + +set(BUILD_DQML FALSE CACHE BOOL "Enable the building of the D bindings") +set(BUILD_NIMQML FALSE CACHE BOOL "Enable the building of the Nim bindings") + add_subdirectory(DOtherSide) -add_subdirectory(Nim) -add_subdirectory(D) +if (BUILD_DQML) + add_subdirectory(D) +endif() + +if (BUILD_NIMQML) + add_subdirectory(Nim) +endif()