From e4444b71b96c896690817a02cf66199183b68a19 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 19 Aug 2016 08:06:17 +0200 Subject: o Adding complete documentation for the kicad_generate_header goal. kicad_generate_header: Append the global variable `KICAD_GEN_TEMPLATE_LIBS` to the template search list. o Adding back the examples. --- CMakeLists.txt | 2 +- README.md | 27 +++++++++++++++++++++++++++ cmake/KicadUtilsConfig.cmake | 1 + cmake/kicad_generate_header.cmake | 17 ++++++++++++----- examples/CMakeLists.txt | 8 ++++++-- 5 files changed, 47 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58d3aa4..bc4a12b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,4 +10,4 @@ add_subdirectory(python) add_subdirectory(cli) add_subdirectory(doc) -#add_subdirectory(examples) +add_subdirectory(examples) diff --git a/README.md b/README.md index b9a1bdf..d019c9e 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,33 @@ Put this in your `CMakeLists.txt`: and `schematic.h` will automatically be generated. CMake now knows that `schematic.h` is generated and depends on `schematic/intel-quark-d2000.net`. +### CMake function usage + +Usage: + + kicad_generate_header( + NET (Required) + OUTPUT (Required) + REF (Required) + TEMPLATE