2013-04-13 23:27:04 +02:00
|
|
|
|
2013-12-02 19:10:58 +01:00
|
|
|
# Update this "template_lst" when you add or remove a project template
|
|
|
|
set( template_lst
|
2015-05-14 04:04:42 +02:00
|
|
|
Arduino_As_Uno_R3
|
|
|
|
Arduino_Fio
|
|
|
|
Arduino_Mega_R3
|
|
|
|
Arduino_Micro
|
|
|
|
Arduino_Mini
|
|
|
|
Arduino_Nano
|
|
|
|
Arduino_Pro_Mini
|
2013-12-02 19:10:58 +01:00
|
|
|
raspberrypi-gpio
|
|
|
|
stm32f100-discovery-shield
|
|
|
|
ti-stellaris-boosterpack40
|
|
|
|
ti-stellaris-boosterpack40_min
|
2015-06-23 19:36:45 +02:00
|
|
|
BeagleBone-Black-Cape
|
2016-06-25 02:21:01 +02:00
|
|
|
minnowboard-ls-lure
|
2017-07-24 04:01:56 +02:00
|
|
|
EuroCard160mmX100mm
|
|
|
|
EuroCard160mmX100mm_holes
|
2013-12-02 19:10:58 +01:00
|
|
|
)
|
2013-04-13 23:34:10 +02:00
|
|
|
|
2013-04-13 23:27:04 +02:00
|
|
|
|
|
|
|
foreach( tpl ${template_lst} )
|
2013-12-02 16:51:33 +01:00
|
|
|
install( DIRECTORY ${tpl} DESTINATION ${KICAD_TEMPLATE} COMPONENT templates )
|
2013-04-13 23:27:04 +02:00
|
|
|
endforeach()
|
2013-12-02 16:51:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
# The source tree's CMake installation and this library CMake installation are coordinated. In
|
|
|
|
# particular, the template directory receives files from both CMake installers so a common location
|
|
|
|
# should be maintained in both installers, so they both can add to that directory.
|
|
|
|
|
|
|
|
install( FILES
|
|
|
|
fp-lib-table.for-github
|
|
|
|
fp-lib-table.for-pretty
|
|
|
|
fp-lib-table.for-legacy
|
|
|
|
fp-lib-table.for-eagle-6.4.0
|
2017-02-18 19:11:59 +01:00
|
|
|
sym-lib-table
|
2013-12-02 16:51:33 +01:00
|
|
|
DESTINATION ${KICAD_TEMPLATE}
|
|
|
|
COMPONENT resources
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Establish fp-lib-table.for-github as template/fp-lib-table for those not running kicad-install.sh
|
|
|
|
install( FILES
|
|
|
|
fp-lib-table.for-github
|
|
|
|
DESTINATION ${KICAD_TEMPLATE}
|
|
|
|
COMPONENT resources
|
|
|
|
RENAME fp-lib-table
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# These can be fired by running
|
|
|
|
#
|
|
|
|
# "make install_github_fp-lib-table"
|
|
|
|
#
|
|
|
|
# or similar (might change github to pretty) to rename and copy an fp-lib-table strategy into your
|
|
|
|
# KICAD_USER_CONFIG_DIR (i.e. $HOME directory) where pcbnew will find it for the global table.
|
|
|
|
# Only one of these should be run of course.
|
|
|
|
|
|
|
|
add_custom_target( install_github_fp-lib-table
|
|
|
|
"${CMAKE_COMMAND}" -E copy "${PROJECT_SOURCE_DIR}/template/fp-lib-table.for-github" ${KICAD_USER_CONFIG_DIR}/fp-lib-table
|
|
|
|
COMMENT "Install template fp-lib-table into your home directory."
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target( install_pretty_fp-lib-table
|
|
|
|
"${CMAKE_COMMAND}" -E copy "${PROJECT_SOURCE_DIR}/template/fp-lib-table.for-pretty" ${KICAD_USER_CONFIG_DIR}/fp-lib-table
|
|
|
|
COMMENT "Install template fp-lib-table into your home directory."
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target( install_legacy_fp-lib-table
|
|
|
|
"${CMAKE_COMMAND}" -E copy "${PROJECT_SOURCE_DIR}/template/fp-lib-table.for-legacy" ${KICAD_USER_CONFIG_DIR}/fp-lib-table
|
|
|
|
COMMENT "Install template fp-lib-table into your home directory."
|
|
|
|
)
|
|
|
|
|
|
|
|
|