From f2bfa3968e22aebb04c9379eb3ce5ae85017f266 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 30 Aug 2020 10:14:51 +0300 Subject: [PATCH] Make examples compilation optional --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2725b8bf..0374bd2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,4 +17,8 @@ add_library(psemek todo.md) target_link_libraries(psemek INTERFACE ${PSEMEK_LIBRARIES}) set_target_properties(psemek PROPERTIES LINKER_LANGUAGE CXX) -add_subdirectory(examples) +option(PSEMEK_EXAMPLES "Build example apps" OFF) + +if(PSEMEK_EXAMPLES) + add_subdirectory(examples) +endif()