move project templates from source tree to library tree
This commit is contained in:
parent
9058a53e6f
commit
a6a1ab5c27
2 changed files with 18 additions and 0 deletions
15
template/CMakeLists.txt
Normal file
15
template/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
# "template_lst" will be a list of all templates.
|
||||
# Each template is a directory here.
|
||||
file( GLOB template_lst RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
|
||||
#message( template_lst:${template_lst} )
|
||||
|
||||
# don't include CMakeLists.txt or CMakeLists.txt~ which could be in the GLOB list
|
||||
string( REGEX REPLACE "CMakeLists.txt~*;?" "" template_lst "${template_lst}" )
|
||||
#message( template_lst:${template_lst} )
|
||||
|
||||
|
||||
foreach( tpl ${template_lst} )
|
||||
#message( tpl:${tpl} )
|
||||
install( DIRECTORY ${tpl} DESTINATION ${KICAD_TEMPLATES} COMPONENT templates )
|
||||
endforeach()
|
Loading…
Add table
Add a link
Reference in a new issue