Skip to content

Commit

Permalink
pmod_microsd: Optimize bom export
Browse files Browse the repository at this point in the history
Signed-off-by: Huang Rui <vowstar@gmail.com>
  • Loading branch information
vowstar committed Feb 29, 2024
1 parent 0e0580f commit fd3cc2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pmod_microsd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ add_custom_command(
-o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_positions.csv"
"${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.kicad_pcb"
COMMAND
${KICADCLI_PROGRAM} sch export python-bom
-o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_bom.xml"
${KICADCLI_PROGRAM} sch export bom
--preset "Grouped By Value"
-o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_bom.csv"
"${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.kicad_sch"
COMMAND
${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_PROJECT_NAME}_gerber.zip" --format=zip
Expand Down

0 comments on commit fd3cc2d

Please sign in to comment.