From 1d879e36cce56500dc9604871f5f6f1013e8ee15 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 20 Mar 2021 11:40:51 -0400 Subject: [PATCH] Make drc_proto an optional part of the build --- CMakeLists.txt | 4 ++++ qa/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1414462c7..f2e3aab386 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,10 @@ cmake_dependent_option( KICAD_USE_BUNDLED_GLEW ON "KICAD_USE_EGL" OFF ) +option( KICAD_DRC_PROTO + "Build the DRC prototype QA tool" + OFF ) + # when option KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES is enabled: # PYTHON_EXECUTABLE can be defined when invoking cmake # ( use -DPYTHON_EXECUTABLE=/python.exe or python2 ) diff --git a/qa/CMakeLists.txt b/qa/CMakeLists.txt index bfad8558a2..bdaaa46c77 100644 --- a/qa/CMakeLists.txt +++ b/qa/CMakeLists.txt @@ -54,7 +54,10 @@ add_subdirectory( libs ) add_subdirectory( pcbnew ) add_subdirectory( utils/kicad2step ) # add_subdirectory( libeval_compiler ) -add_subdirectory( drc_proto ) + +if( KICAD_DRC_PROTO ) + add_subdirectory( drc_proto ) +endif() # Utility/debugging/profiling programs add_subdirectory( common_tools )