From 8fa58a292c777b672b8dd38ad1c976819378ceee Mon Sep 17 00:00:00 2001 From: allem Date: Wed, 8 Jan 2020 20:33:05 -0500 Subject: [PATCH] add default option to avoid building example executables --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 376e5e5..028273a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.10) project(toddcox-faster) +option(TC_BUILD_EXAMPLE "Build example executables" OFF) + add_library(tc STATIC src/groups.cpp src/solve.cpp @@ -8,4 +10,6 @@ add_library(tc STATIC target_include_directories(tc PUBLIC include) -add_subdirectory(example) +if (TC_BUILD_EXAMPLE) + add_subdirectory(example) +endif ()