Skip to content

Commit

Permalink
fmc_basic_peripheral: 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 d61a58d commit 0e0580f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fmc_basic_peripheral/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,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 0e0580f

Please sign in to comment.