From 06f842edd51114020d9b27d137b2f41d5f1cdc5e Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 4 Oct 2019 09:39:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BB=D0=B0=D0=B3=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=80=D0=B0=D0=B7=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae730ca..0d18bb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,8 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/find) include(CMLibCommon) +option(BUILD_EXAMPLES "Build examples" OFF) + # Поиск библиотек с помощью pkgconfig find_package(PkgConfig) @@ -45,8 +47,10 @@ add_subdirectory(src/filesystem) add_subdirectory(src/log) # Примеры -add_subdirectory(examples/filesystem) -add_subdirectory(examples/log) +if (BUILD_EXAMPLES) + add_subdirectory(examples/filesystem) + add_subdirectory(examples/log) +endif() add_breathe_target( TARGET_NAME doc-breathe