aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-08-19 08:06:17 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-08-19 08:06:17 +0200
commite4444b71b96c896690817a02cf66199183b68a19 (patch)
tree37d1fc4a80487edc1baec87911ba8c4aabc5f5de /README.md
parenta870407b91ef5a38c76bfb975fcc84f7225dd6d2 (diff)
downloadkicad-utils-e4444b71b96c896690817a02cf66199183b68a19.tar.gz
kicad-utils-e4444b71b96c896690817a02cf66199183b68a19.tar.bz2
kicad-utils-e4444b71b96c896690817a02cf66199183b68a19.tar.xz
kicad-utils-e4444b71b96c896690817a02cf66199183b68a19.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 27 insertions, 0 deletions
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 <netlist> (Required)
+ OUTPUT <file name> (Required)
+ REF <netlist reference> (Required)
+ TEMPLATE <template name> (Required)
+ OUTPUT_DIR <output base directory>
+ TEMPLATE_LIB_LIST <template library search path>
+ TARGET <target name>
+ ALL
+ IN_SOURCE
+ )
+
+
+The `OUTPUT_DIR` defaults to `CMAKE_CURRENT_BINARY_DIR` unless `IN_SOURCE` is given. If so, it defaults to
+`CMAKE_CURRENT_SOURCE_DIR`.
+
+If `TARGET` is set a CMake target with the given name is created. If `ALL` is specified this target will be a part of
+the CMake `ALL` target. See the documentation for `add_custom_target`'s `ALL` option.
+
+`TEMPLATE_LIB_LIST` is a list of directories that will be searched for the template. The global variable
+`KICAD_GEN_TEMPLATE_LIBS` will be appended to the library list if set.
+
+
# Templates
The templates are simply Python files that map from the part's pin number to a platform-specific symbol. The