From e21bd2479ef9810bed962d3d497d3b683b741067 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Mon, 29 Oct 2012 16:55:05 -0500 Subject: [PATCH] add new templates to template/CMakeLists.txt, group all templates into one installation COMPONENT --- template/CMakeLists.txt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/template/CMakeLists.txt b/template/CMakeLists.txt index 568fbbf29b..8701221d53 100644 --- a/template/CMakeLists.txt +++ b/template/CMakeLists.txt @@ -2,11 +2,17 @@ install(FILES kicad.pro DESTINATION ${KICAD_TEMPLATE} COMPONENT resources) -set( Templates raspberrypi-gpio stm32f100-discovery-shield ) +# template_lst is a list of all templates. +set( template_lst + raspberrypi-gpio + stm32f100-discovery-shield + ti-stellaris-boosterpack40 + ti-stellaris-boosterpack40_min + ) -foreach( Template ${Templates} ) - install( DIRECTORY ${Template} - DESTINATION ${KICAD_TEMPLATE} - COMPONENT ${Template} ) -endforeach(Template) +foreach( tpl ${template_lst} ) + install( DIRECTORY ${tpl} + DESTINATION ${KICAD_TEMPLATE} + COMPONENT templates ) +endforeach()