From 605e7839290addd0c67a41caa08c559c62de3b7f Mon Sep 17 00:00:00 2001 From: Derek Christ Date: Mon, 12 May 2025 15:17:48 +0200 Subject: [PATCH] Hide compilation of tools behind CMake flag --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51d8073c..8c5c0aa7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ endif() option(DRAMSYS_BUILD_TESTS "Build DRAMSys unit tests" OFF) option(DRAMSYS_BUILD_BENCHMARKS "Build DRAMSys benchmarks" OFF) option(DRAMSYS_BUILD_CLI "Build DRAMSys Command Line Tool" ${PROJECT_IS_TOP_LEVEL}) +option(DRAMSYS_BUILD_TOOLS "Build DRAMSys Tools" OFF) option(DRAMSYS_BUILD_TRACE_ANALYZER "Build DRAMSys Trace Analyzer" OFF) # Use sane defaults for FetchContent: @@ -159,7 +160,9 @@ find_package(DRAMPower REQUIRED) add_subdirectory(src/configuration) add_subdirectory(src/libdramsys) -add_subdirectory(tools) +if(DRAMSYS_BUILD_TOOLS) + add_subdirectory(tools) +endif() if(DRAMSYS_BUILD_CLI) add_subdirectory(src/simulator)