Add option to build QA test suite (this option is on by default.

KICAD_BUILD_QA_TESTS=OFF skips the QA test suite build.
This is useful for daily work on Kicad. It spares compil and link time.
This commit is contained in:
jean-pierre charras 2019-04-16 18:02:41 +02:00
parent 460909ea9a
commit ead5bfe64b
2 changed files with 12 additions and 1 deletions

View File

@ -102,6 +102,10 @@ option( KICAD_INSTALL_DEMOS
"Install KiCad demos and examples (default ON)" "Install KiCad demos and examples (default ON)"
ON ) ON )
option( KICAD_BUILD_QA_TESTS
"Build software Quality assurance unit tests (default ON)"
ON )
# when option KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES is enabled: # when option KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES is enabled:
# PYTHON_EXECUTABLE can be defined when invoking cmake # PYTHON_EXECUTABLE can be defined when invoking cmake
# ( use -DPYTHON_EXECUTABLE=<python path>/python.exe or python2 ) # ( use -DPYTHON_EXECUTABLE=<python path>/python.exe or python2 )
@ -943,7 +947,9 @@ add_subdirectory( plugins ) # 3D plugins must be built before kicad
add_subdirectory( kicad ) # should follow pcbnew, eeschema add_subdirectory( kicad ) # should follow pcbnew, eeschema
add_subdirectory( tools ) add_subdirectory( tools )
add_subdirectory( utils ) add_subdirectory( utils )
add_subdirectory( qa ) if( KICAD_BUILD_QA_TESTS )
add_subdirectory( qa )
endif()
# Resources # Resources
if ( KICAD_INSTALL_DEMOS ) if ( KICAD_INSTALL_DEMOS )

View File

@ -205,6 +205,11 @@ The KICAD_SCRIPTING_ACTION_MENU option allows Python scripts to be added directl
menu. This option is disabled by default. Please note that this option is highly experimental menu. This option is disabled by default. Please note that this option is highly experimental
and can cause Pcbnew to crash if Python scripts create an invalid object state within Pcbnew. and can cause Pcbnew to crash if Python scripts create an invalid object state within Pcbnew.
## Quality assurance (qa) unit tests ## {#quality_assurance_tests_opt}
The KICAD_BUILD_QA_TESTS option allows building unit tests binaries for quality assurance.
This option is enabled by default.
## KiCad Build Version ## {#build_version_opt} ## KiCad Build Version ## {#build_version_opt}
The KiCad version string is defined by the output of `git describe --dirty` when git is available The KiCad version string is defined by the output of `git describe --dirty` when git is available