From 34b5617cb4d498c4c1ddcc711d98c6efe7502175 Mon Sep 17 00:00:00 2001 From: Mads Andreasen Date: Sun, 10 Jan 2021 17:08:38 +0100 Subject: [PATCH] Only build examples when testing --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21290b7..b00d0fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,11 +12,10 @@ if(LINT) set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=*,-fuchsia-*) endif() - add_subdirectory(src) -add_subdirectory(example) if(HSM_TESTING) + add_subdirectory(example) enable_testing() add_subdirectory(tests) endif()