aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-09-15 00:37:46 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-09-15 00:37:46 +0200
commit7f098579387bb16c775ab28490be2f347b05e51b (patch)
tree4064322990b90a42d155d0d9c14a4ea11af717ae /examples
parente4444b71b96c896690817a02cf66199183b68a19 (diff)
downloadkicad-utils-7f098579387bb16c775ab28490be2f347b05e51b.tar.gz
kicad-utils-7f098579387bb16c775ab28490be2f347b05e51b.tar.bz2
kicad-utils-7f098579387bb16c775ab28490be2f347b05e51b.tar.xz
kicad-utils-7f098579387bb16c775ab28490be2f347b05e51b.zip
Adding CMake commands:
kicad_pcb_plot() that plots the PCB in PDF, PS and SVG formats. kicad_gerber() that generates GERBER files from a PCB. Can optionally create a ZIP file with all the files. Supports old (protel) naming of files.
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index daa2b4d..7d45496 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -9,7 +9,10 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
message(FATAL_ERROR "The KicadUtils CMake package was not found. Did you pass the correct value for KicadUtils_DIR?\nIt should probably be something like KicadUtils_DIR=$HOME/opt/kicad-utils/lib/cmake/KicadUtils")
endif ()
else ()
+ set(KicadUtilsPyDir "${CMAKE_CURRENT_LIST_DIR}/../py")
include(../cmake/kicad_generate_header.cmake)
+ include(../cmake/kicad_pcb_plot.cmake)
+# include(../cmake/kicad_schematic_plot.cmake)
list(APPEND KICAD_GEN_TEMPLATE_LIBS ${CMAKE_CURRENT_SOURCE_DIR}/../templates)
set(kicad_generate_header_cmd generate-header)
endif ()