代码拉取完成,页面将自动刷新
project( kicad-packages3d NONE )
cmake_minimum_required( VERSION 2.6.1 FATAL_ERROR )
#================================================
# Locations for install targets.
#================================================
if( APPLE )
# Like all variables, CMAKE_INSTALL_PREFIX can be over-ridden on the command line.
set( CMAKE_INSTALL_PREFIX "/Library/Application Support/kicad/" CACHE PATH "" )
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
set( KICAD_PACKAGES_3D 3dmodels )
else()
# Everything without leading / is relative to CMAKE_INSTALL_PREFIX.
set( KICAD_DATA share/kicad
CACHE PATH "Location of KiCad data files." )
set( KICAD_PACKAGES_3D ${KICAD_DATA}/3dmodels )
endif()
mark_as_advanced( KICAD_DATA KICAD_MODULES )
#================================================
# "make uninstall" rules
#
# The uninstaller does not remove folders only files.
#================================================
configure_file(
"${PROJECT_SOURCE_DIR}/CMakeModules/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
add_custom_target( uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
#================================================
# Installed files.
#================================================
# Install all of the .3dshapes folders and their contents in to the modules path.
file ( GLOB SHAPE_DIRS "*.3dshapes" )
install( DIRECTORY ${SHAPE_DIRS}
DESTINATION ${KICAD_PACKAGES_3D}
COMPONENT resources
FILES_MATCHING PATTERN "*.wrl"
PATTERN ".git" EXCLUDE
)
install( DIRECTORY ${SHAPE_DIRS}
DESTINATION ${KICAD_PACKAGES_3D}
COMPONENT resources
FILES_MATCHING PATTERN "*.step"
PATTERN ".git" EXCLUDE
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。