From 61a4b0ae8a9c9a3715d44118fe0f0fce5ad875fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Thu, 14 Sep 2023 12:15:41 +0200 Subject: [PATCH] build: make compilation of examples optional build: set default values of optional options to OFF --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a76e995..11e56ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,11 @@ endif() option(TUG_ENABLE_TESTING "Run tests after succesfull compilation" - ON) + OFF) + +option(TUG_ENABLE_EXAMPLES + "Compile example applications" + OFF) add_subdirectory(src) @@ -41,4 +45,6 @@ if(TUG_ENABLE_TESTING) add_subdirectory(test) endif() -add_subdirectory(examples) +if(TUG_ENABLE_EXAMPLES) + add_subdirectory(examples) +endif()