Re: [Kicad-developers] [PATCH] add missing parentheses in page layout templates
On 2016-09-08 20:56, Werner Almesberger wrote: > The default and logo page layout templates are missing some opening > parentheses. Eeschema's parser accepts them anyway, but it tripped > my s-expr parser. Is accepting a wrong syntax without a warning not a bug worth fixing? Regards, Clemens ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] [PATCH] make pagelayout_default.kicad_wks match defaultPageLayout
The pagelayout_default.kicad_wks template differs slightly from common/page_layout/page_layout_default_description.cpp:defaultPageLayout Not sure if this is intentional or a bug. In any case, here is a patch that changes pagelayout_default.kicad_wks to match defaultPageLayout. This patch is based on the previous one that added missing parentheses. - Werner commit 3e0c715315ea46881d5be7a72c6daafd41360b52 Author: Werner Almesberger Date: Thu Sep 8 15:44:41 2016 -0300 template/pagelayout_default.kicad_wks: synchronize with defaultPageLayout ... from common/page_layout/page_layout_default_description.cpp diff --git a/template/pagelayout_default.kicad_wks b/template/pagelayout_default.kicad_wks index a839593..8984ede 100644 --- a/template/pagelayout_default.kicad_wks +++ b/template/pagelayout_default.kicad_wks @@ -1,5 +1,6 @@ ( page_layout -( setup (textsize 1.5 1.5) (linewidth 0.15) (textlinewidth 0.15) ) +( setup (textsize 1.5 1.5) (linewidth 0.15) (textlinewidth 0.15) + (left_margin 10) (right_margin 10) (top_margin 10) (bottom_margin 10) ) ( rect (comment "rect around the title block") (linewidth 0.15) (start 110 34) (end 2 2) ) ( rect (start 0 0 ltcorner) (end 0 0 rbcorner) (repeat 2) (incrx 2) (incry 2) ) ( line (start 50 2 ltcorner) (end 50 0 ltcorner) (repeat 30) (incrx 50) ) @@ -20,7 +21,7 @@ ( tbtext "Size: %Z" (comment "Paper format name")(pos 109 6.9) ) ( tbtext "Id: %S/%N" (comment "Sheet id")(pos 24 4.1) ) ( line (start 110 12.5) (end 2 12.5) ) -( tbtext "Title: %T" (pos 109 10.7)(font bold (size 2 2)) ) +( tbtext "Title: %T" (pos 109 10.7)(font bold italic (size 2 2)) ) ( tbtext "File: %F" (pos 109 14.3) ) ( line (start 110 18.5) (end 2 18.5) ) ( tbtext "Sheet: %P" (pos 109 17) ) ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] [PATCH v2] Add KICAD_INSTALL_DEMOS CMake option
It is ON by default, determines wether to install the bundled demos and examples. --- This version has the required documentation changes. --- CMakeLists.txt | 6 ++ Documentation/development/compiling.md | 7 +++ 2 files changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bfeaac5..9fba017 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,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 ) @@ -806,5 +810,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 ac4824e..603ebfc 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 ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] [PATCH] add missing parentheses in page layout templates
The default and logo page layout templates are missing some opening parentheses. Eeschema's parser accepts them anyway, but it tripped my s-expr parser. The gost templates and the built-in default in common/page_layout/page_layout_default_description.cpp are both correct. - Werner commit c4a3b851729b4e1727221bc73d8ace642ebcb3b6 Author: Werner Almesberger Date: Thu Sep 8 15:37:33 2016 -0300 template/pagelayout_{default,logo}.kicad_wks: add missing opening parentheses diff --git a/template/pagelayout_default.kicad_wks b/template/pagelayout_default.kicad_wks index 60c1973..a839593 100644 --- a/template/pagelayout_default.kicad_wks +++ b/template/pagelayout_default.kicad_wks @@ -13,22 +13,22 @@ ( tbtext "A" (pos 1 25 rtcorner) (font (size 1.3 1.3)) (justify center) (repeat 100) (incry 50) ) ( tbtext "Date: %D" (pos 87 6.9) ) -( line (start 110 5.5) end 2 5.5) ) +( line (start 110 5.5) (end 2 5.5) ) ( tbtext "%K" (pos 109 4.1) (comment "Kicad version" ) ) -( line (start 110 8.5) end 2 8.5) ) +( line (start 110 8.5) (end 2 8.5) ) ( tbtext "Rev: %R" (pos 24 6.9)(font bold)(justify left) ) ( tbtext "Size: %Z" (comment "Paper format name")(pos 109 6.9) ) ( tbtext "Id: %S/%N" (comment "Sheet id")(pos 24 4.1) ) -( line (start 110 12.5) end 2 12.5) ) +( line (start 110 12.5) (end 2 12.5) ) ( tbtext "Title: %T" (pos 109 10.7)(font bold (size 2 2)) ) ( tbtext "File: %F" (pos 109 14.3) ) -( line (start 110 18.5) end 2 18.5) ) +( line (start 110 18.5) (end 2 18.5) ) ( tbtext "Sheet: %P" (pos 109 17) ) ( tbtext "%Y" (comment "Company name") (pos 109 20)(font bold) ) ( tbtext "%C0" (comment "Comment 0") (pos 109 23) ) ( tbtext "%C1" (comment "Comment 1") (pos 109 26) ) ( tbtext "%C2" (comment "Comment 2") (pos 109 29) ) ( tbtext "%C3" (comment "Comment 3") (pos 109 32) ) -( line (start 90 8.5) end 90 5.5) ) -( line (start 26 8.5) end 26 2) ) +( line (start 90 8.5) (end 90 5.5) ) +( line (start 26 8.5) (end 26 2) ) ) diff --git a/template/pagelayout_logo.kicad_wks b/template/pagelayout_logo.kicad_wks index dd71096..c2bb6b5 100644 --- a/template/pagelayout_logo.kicad_wks +++ b/template/pagelayout_logo.kicad_wks @@ -13,16 +13,16 @@ ( tbtext "A" (pos 1 25 rtcorner) (font (size 1.3 1.3)) (justify center) (repeat 100) (incry 50) ) ( tbtext "Date: %D" (pos 87 6.9) ) -( line (start 110 5.5) end 2 5.5) ) +( line (start 110 5.5) (end 2 5.5) ) ( tbtext "%K" (pos 109 4.1) (comment "Kicad version" ) ) -( line (start 110 8.5) end 2 8.5) ) +( line (start 110 8.5) (end 2 8.5) ) ( tbtext "Rev: %R" (pos 24 6.9)(font bold)(justify left) ) ( tbtext "Size: %Z" (comment "Paper format name")(pos 109 6.9) ) ( tbtext "Id: %S/%N" (comment "Sheet id")(pos 24 4.1) ) -( line (start 110 12.5) end 2 12.5) ) +( line (start 110 12.5) (end 2 12.5) ) ( tbtext "Title: %T" (pos 109 10.7)(font bold (size 2 2)) ) ( tbtext "File: %F" (pos 109 14.3) ) -( line (start 110 18.5) end 2 18.5) ) +( line (start 110 18.5) (end 2 18.5) ) ( tbtext "Sheet: %P" (pos 109 17) ) ( tbtext "%Y" (comment "Company name") (pos 109 20)(font bold) ) ( tbtext "%C0" (comment "Comment 0") (pos 109 23) ) ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] announcing eeshow (schematics renderer and viewer)
Eldar Khayrullin wrote: > Now projects are opening from another places Great ! > (maybe I was confused with > message like this one "../kicad-gost-library/linear-gost.lib: not found") Yes, there can be quite a lot of complaints like this, and they can be confusing at times. I still need to tame this. In any case, much of this will improve when rewriting file lookup. > I tried with and without flag -P. All work with same speed and show > cyrillic text right. Oh, cyrillic works even without -P ? Then it's maybe just a question of what fonts are installed. The speed difference is not very noticeable most of the time. You can experience it when loading a design with many sheets (e.g., Neo900, 37 sheets), then showing the index. Eeshow renders every sheet to the small icon image. On my PC, this takes about 350 ms with Cairo (still not really noticeable), but more than 2 s with Pango. The images are cached (as long as the window size remains the same), so the next time you invoke the index it's fast. To see how long operations take, you can toggle time measurements with "T". The time shown is from the last input action (key, mouse movement, etc.) to the end of the screen update. > But I saw some issues (see images): > 1) doesn't use fields values; Yes, I don't expand all the %X format symbols in page layouts yet. I'll add the missing ones over time. Some are also a bit tricky, e.g., what should go into %K "KiCad version", name and version of the renderer, i.e., eeshow/eeplot, or the name of the editor ? In the latter case, all I could show is "KiCad E.D.A. eeschema" - the version number doesn't seem to be recorded anywhere. > 2) issue with \n Yes, page layout is still a construction site. Eeshow also doesn't support maxheight and maxwidth yet. If the page layout acts up to badly, you can suppress it in eeshow and eeplot with the option -L > 3) without '-P' flag the symbol ~EN1 shows with upper line, but with '-P' > shows ~EN1. Yes, that's the overlining I mentioned. It's only implemented for Cairo so far. Ironically, I added Pango support because I thought I couldn't do overlining with Cairo, but then I found an only slightly hackish way to do it. - Werner ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
@Nick, good catch! @Jose: please update the Documentation/development/compiling.md document with your proposed option and resubmit your patch. On 9/8/2016 1:28 PM, Nick Østergaard wrote: > The proposed patch does not document the option in the devdocs. > > 2016-09-08 19:15 GMT+02:00 Wayne Stambaugh : >> Anyone object to this? I don't really have an opinion one way or the >> other since it defaults to the current behavior. I guess there is a >> reason not to install the demos. What's one more option at this point. ;) >> >> On 9/8/2016 3:04 AM, José Ignacio Romero wrote: >>> >>> It is ON by default, determines wether to install the bundled demos >>> and examples. >>> --- >>> CMakeLists.txt | 6 ++ >>> 1 file changed, 6 insertions(+) >>> >>> >>> >>> ___ >>> Mailing list: https://launchpad.net/~kicad-developers >>> Post to : kicad-developers@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~kicad-developers >>> More help : https://help.launchpad.net/ListHelp >>> >> >> ___ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : kicad-developers@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
As this doesn't affect the program at all, and on some platforms it will be installed seperately anyway i don't think there is any point not having this option On Fri, Sep 9, 2016 at 5:15 AM, Wayne Stambaugh wrote: > Anyone object to this? I don't really have an opinion one way or the > other since it defaults to the current behavior. I guess there is a > reason not to install the demos. What's one more option at this point. ;) > > On 9/8/2016 3:04 AM, José Ignacio Romero wrote: >> >> It is ON by default, determines wether to install the bundled demos >> and examples. >> --- >> CMakeLists.txt | 6 ++ >> 1 file changed, 6 insertions(+) >> >> >> >> ___ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : kicad-developers@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp >> > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
The proposed patch does not document the option in the devdocs. 2016-09-08 19:15 GMT+02:00 Wayne Stambaugh : > Anyone object to this? I don't really have an opinion one way or the > other since it defaults to the current behavior. I guess there is a > reason not to install the demos. What's one more option at this point. ;) > > On 9/8/2016 3:04 AM, José Ignacio Romero wrote: >> >> It is ON by default, determines wether to install the bundled demos >> and examples. >> --- >> CMakeLists.txt | 6 ++ >> 1 file changed, 6 insertions(+) >> >> >> >> ___ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : kicad-developers@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp >> > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
Anyone object to this? I don't really have an opinion one way or the other since it defaults to the current behavior. I guess there is a reason not to install the demos. What's one more option at this point. ;) On 9/8/2016 3:04 AM, José Ignacio Romero wrote: > > It is ON by default, determines wether to install the bundled demos > and examples. > --- > CMakeLists.txt | 6 ++ > 1 file changed, 6 insertions(+) > > > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [RFC] [PATCH] simple C++ tests
On 9/7/2016 5:39 PM, Tomasz Wlostowski wrote: > On 07.09.2016 21:24, Wayne Stambaugh wrote: >> Tom, >> >> I also forgot to mention there were tabs in the CMakeLists.txt file. >> > Hi Wayne, > > Here's a (hopefully) fixed version. > > Cheers, > Tom Hey Tom, Here is the patch that fixes the linking as well. I linked against the static libraries. That shouldn't be an issue. FYI, I would rather you use CTest[1] add_test()[2] for defining tests then creating a custom function. When you use CTest, I believe the BUILD_TESTING enables building the tests but I've never used this so I'm not sure how it all fits together but I'm sure it's documented somewhere. Cheers, Wayne [1] https://cmake.org/Wiki/CMake_Testing_With_CTest [2] https://cmake.org/cmake/help/v3.6/command/add_test.html > >> Cheers, >> >> Wayne >> >> On 9/7/2016 12:17 PM, Tomasz Wlostowski wrote: >>> Hi, >>> >>> This patch adds possibility to build C++ tests for pcbnew, using >>> Boost.Test framework. I intended it primarily to make tests for the P&S, >>> which I used to develop out-of-tree before. >>> >>> Since Kicad's codebase is rather monolithic, testing/refactoring >>> anything drags in pretty much everything else in the code as a >>> dependency. This causes long rebuild and linking times, which I find >>> very annoying. Also, while developing new features, most of the time is >>> spent linking pcbnew and clicking in the GUI to trigger the particular >>> feature. >>> >>> For that reason I decided to link all the test cases directly to the >>> _pcbnew_kiface library and skip pcbnew's dependency scanning when >>> building tests. I'm also preparing a bare PCB test window for verifying >>> interactive/graphical operations without rebuilding pcbnew as a whole app. >>> >>> I've attached the patch (set the KICAD_BUILD_TESTS=ON option to enable). >>> There's one trivial unit test included as an example. Let me know if >>> such solution would be acceptable. >>> >>> Cheers, >>> Tom >>> >>> >>> >>> ___ >>> Mailing list: https://launchpad.net/~kicad-developers >>> Post to : kicad-developers@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~kicad-developers >>> More help : https://help.launchpad.net/ListHelp >>> >> >> ___ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : kicad-developers@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp >> > diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6a3abea..7a7ba46 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,15 +1,19 @@ -include_directories ( -${CMAKE_SOURCE_DIR} +include_directories( +${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/polygon ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/pcbnew ${CMAKE_SOURCE_DIR}/pcbnew/router ) -link_directories ( ${CMAKE_BINARY_DIR}/pcbnew ) +link_directories( ${CMAKE_BINARY_DIR}/pcbnew ) function( add_test_case name ) -add_executable ( ${name} ${name}.cpp ) -target_link_libraries ( ${name} ${wxWidgets_LIBRARIES} _pcbnew_kiface ${Boost_LIBRARIES} ) +add_executable( ${name} ${name}.cpp ) +target_link_libraries( ${name} ${wxWidgets_LIBRARIES} +common +pcbcommon +pnsrouter +${Boost_LIBRARIES} ) endfunction( add_test_case ) -add_subdirectory ( pns ) +add_subdirectory( pns ) ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] [PATCH] Print layer names in pcbnew
This patch allows for printing layer names in pcbnew using a %L formater. This is helpful when printing 1 layer per page. Ian Print-layer-name-in-pcbnew.patch Description: Binary data ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [RFC] Nix sheet pin disambiguation menu
I pushed this patch. Thanks. I noticed it only effects the move operation so I don't know if many users will notice the change. I'm wondering if it wouldn't have been better to disambiguate all operations when selecting a sheet pin. That's a discussion for another day. On 9/6/2016 1:03 AM, Chris Pavlina wrote: > Here's a patch, have a look at it, and if you're okay with the > limitation I mentioned feel free to commit :) > > On Mon, Sep 05, 2016 at 06:35:54PM -0400, Chris Pavlina wrote: >> I haven't tested it yet as I haven't written the patch yet. However, it >> is possible to select the sheet by grabbing its label, and eeschema does >> not allow sheet pins to be placed over labels, so the label should >> always be accessible. >> >> I suppose you could force it, if you really tried, into a state where >> the sheet cannot be directly selected, by putting the sheet pin as high >> as it will go and then setting the text size very large so it overlaps >> everything. I don't see a problem with that though. It pretty much has >> to be deliberate, and you can still fix it by either setting the size >> back down, or using block select to pick up the sheet. >> >> On Mon, Sep 05, 2016 at 06:24:03PM -0400, Wayne Stambaugh wrote: >>> I'm OK with this. By chance did you test it with a really small sheet >>> size just to make sure that you can still select the sheet? That's the >>> only potential issue I can see. >>> >>> On 9/5/2016 11:13 AM, Chris Pavlina wrote: The disambiguation menu makes it absolutely tedious to move a large number of hierarchical sheet pins. Would a patch be accepted to make hierarchical sheet pins automatically preferred when the items under the cursor are only a sheet pin or a sheet? >>> >>> >>> ___ >>> Mailing list: https://launchpad.net/~kicad-developers >>> Post to : kicad-developers@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~kicad-developers >>> More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
What is the reasoning for doing this? 2016-09-08 9:04 GMT+02:00 José Ignacio Romero : > > It is ON by default, determines wether to install the bundled demos > and examples. > --- > CMakeLists.txt | 6 ++ > 1 file changed, 6 insertions(+) > > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
[Kicad-developers] [PATCH] Add KICAD_INSTALL_DEMOS CMake option
It is ON by default, determines wether to install the bundled demos and examples. --- CMakeLists.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bfeaac5..9fba017 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,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 ) @@ -806,5 +810,7 @@ add_subdirectory( utils ) add_subdirectory( qa ) # Resources +if ( KICAD_INSTALL_DEMOS ) add_subdirectory( demos ) +endif ( KICAD_INSTALL_DEMOS ) add_subdirectory( template ) ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp