Bundle libngspice, code models and init scripts for macOS

This commit is contained in:
Maciej Suminski 2018-04-19 11:36:22 +02:00
parent c960d671cd
commit d3f23a62ec
1 changed files with 12 additions and 0 deletions

View File

@ -370,6 +370,18 @@ if( APPLE )
)
" COMPONENT Runtime
)
if( KICAD_SPICE )
# bundle libngspice, codemodels and scripts
get_filename_component( REAL_LIBNGSPICE ${NGSPICE_LIBRARY} REALPATH )
get_filename_component( LIBNGSPICE_PATH ${REAL_LIBNGSPICE} DIRECTORY )
install( FILES "${REAL_LIBNGSPICE}"
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim" )
install( DIRECTORY "${LIBNGSPICE_PATH}/ngspice"
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim" )
install( DIRECTORY "${LIBNGSPICE_PATH}/../share/ngspice/scripts"
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim/ngspice" )
endif()
else()
install( TARGETS eeschema
DESTINATION ${KICAD_BIN}