From bca31c928fa629a6be2e5f006641fe1681f750d2 Mon Sep 17 00:00:00 2001 From: Julian Lenz Date: Mon, 3 Feb 2025 15:40:05 +0100 Subject: [PATCH] Cache BUILD_TESTING/EXAMPLES --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8360d5bd..d34f604c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,12 +43,14 @@ target_include_directories( $ ) +option(mallocMC_BUILD_TESTING "Turn on/off building the tests" OFF) if(mallocMC_BUILD_TESTING) include(${CMAKE_CURRENT_LIST_DIR}/cmake/tools.cmake) enable_testing() add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/test ${CMAKE_BINARY_DIR}/test) endif() +option(mallocMC_BUILD_EXAMPLES "Turn on/off building the examples" OFF) if(mallocMC_BUILD_EXAMPLES) include(${CMAKE_CURRENT_LIST_DIR}/cmake/tools.cmake) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/examples ${CMAKE_BINARY_DIR}/examples)