1
0

add default option to avoid building example executables

This commit is contained in:
2020-01-08 20:33:05 -05:00
parent 5a8c3af15a
commit 8fa58a292c

View File

@@ -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 ()