diff --git a/CMakeLists.txt b/CMakeLists.txt index 14325dd31d..033558f66d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,10 @@ option( KICAD_USE_OCE "Build tools and plugins related to OpenCascade Community Edition (default OFF)" ) +option( KICAD_INSTALL_DEMOS + "Install kicad demos and examples (default ON)" + ON ) + # 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 ) @@ -828,5 +832,7 @@ add_subdirectory( utils ) add_subdirectory( qa ) # Resources +if ( KICAD_INSTALL_DEMOS ) add_subdirectory( demos ) +endif ( KICAD_INSTALL_DEMOS ) add_subdirectory( template ) diff --git a/Documentation/development/compiling.md b/Documentation/development/compiling.md index ac4824eef7..603ebfc221 100644 --- a/Documentation/development/compiling.md +++ b/Documentation/development/compiling.md @@ -166,6 +166,13 @@ and plugins related to OpenCascade Community Edition (OCE) are enabled with this enabled it requires [OCE][] to be available, and the location of the installed OCE libary to be passed via the OCE_DIR flag. This option is disabled by default. +## Demos and Examples ## {#demo_install_opt} + +The KiCad source code includes some demos and examples to showcase the program. You can choose +whether install them or not with the KICAD_INSTALL_DEMOS option. You can also select where to +install them with the KICAD_DEMOS variable. On Linux the demos are installed in +$PREFIX/share/kicad/demos by default. + # Getting the KiCad Source Code ## {#getting_src} There are several ways to get the KiCad source. If you want to build the stable version you