diff --git a/CMakeLists.txt b/CMakeLists.txt index cfa44e1..8dfd322 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,21 @@ cmake_minimum_required(VERSION 3.4) project( snoretoast VERSION 0.5.99) + +option(BUILD_EXAMPLES "Whether to build the examples" ON) + include(GenerateExportHeader) set(CMAKE_CXX_STANDARD 17) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) add_subdirectory(data) add_subdirectory(src) -add_subdirectory(examples) + +if (BUILD_EXAMPLES) + add_subdirectory(examples) +endif()