1 Star 0 Fork 8

ZERO/kicad-packages3D

forked from KiCad-CN/kicad-packages3D 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
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 modules/packages3d )
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}/modules/packages3d )
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
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/beiduofen/kicad-packages3D.git
git@gitee.com:beiduofen/kicad-packages3D.git
beiduofen
kicad-packages3D
kicad-packages3D
master

搜索帮助