From d3f23a62ec86c29f3e656b09d67a0294805e95a7 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 19 Apr 2018 11:36:22 +0200 Subject: [PATCH] Bundle libngspice, code models and init scripts for macOS --- eeschema/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eeschema/CMakeLists.txt b/eeschema/CMakeLists.txt index 3ad3839bfe..819812d07d 100644 --- a/eeschema/CMakeLists.txt +++ b/eeschema/CMakeLists.txt @@ -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}