add new templates to template/CMakeLists.txt, group all templates into one installation COMPONENT

This commit is contained in:
Dick Hollenbeck 2012-10-29 16:55:05 -05:00
parent df810f744c
commit e21bd2479e
1 changed files with 12 additions and 6 deletions

View File

@ -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()