Fix build errors when KICAD_SPICE=OFF

This commit is contained in:
Mikolaj Wielgus 2022-07-31 07:59:00 +02:00
parent fe3a112396
commit 5e47ce8963
2 changed files with 18 additions and 14 deletions

View File

@ -263,8 +263,21 @@ set( EESCHEMA_SRCS
sch_plugins/legacy/sch_legacy_plugin.cpp
sch_plugins/legacy/sch_legacy_plugin_helpers.cpp
# Simulator settings must get built even when the simulator build option is disabled.
# Some simulation features must be built even if libngspice is not linked.
sim/spice_settings.cpp
sim/ngspice_models.cpp
sim/sim_library.cpp
sim/sim_library_spice.cpp
sim/sim_model.cpp
sim/sim_model_behavioral.cpp
sim/sim_model_xspice.cpp
sim/sim_model_ideal.cpp
sim/sim_model_ngspice.cpp
sim/sim_model_spice.cpp
sim/sim_model_source.cpp
sim/sim_model_subckt.cpp
sim/sim_model_tline.cpp
sim/sim_value.cpp
tools/assign_footprints.cpp
tools/backannotate.cpp
@ -312,7 +325,6 @@ if( KICAD_SPICE )
dialogs/dialog_sim_model_base.cpp
sim/ngspice_helpers.cpp
sim/ngspice.cpp
sim/ngspice_models.cpp
sim/sim_panel_base.cpp
sim/sim_plot_colors.cpp
sim/sim_plot_frame.cpp
@ -320,18 +332,6 @@ if( KICAD_SPICE )
sim/sim_plot_panel.cpp
sim/sim_property.cpp
sim/sim_workbook.cpp
sim/sim_library.cpp
sim/sim_library_spice.cpp
sim/sim_model.cpp
sim/sim_model_behavioral.cpp
sim/sim_model_xspice.cpp
sim/sim_model_ideal.cpp
sim/sim_model_ngspice.cpp
sim/sim_model_spice.cpp
sim/sim_model_source.cpp
sim/sim_model_subckt.cpp
sim/sim_model_tline.cpp
sim/sim_value.cpp
sim/spice_simulator.cpp
sim/spice_value.cpp
widgets/tuner_slider.cpp

View File

@ -21,6 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifdef KICAD_SPICE
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <eeschema_test_utils.h>
#include <netlist_exporter_spice.h>
@ -275,3 +277,5 @@ BOOST_AUTO_TEST_CASE( LegacySources )
BOOST_AUTO_TEST_SUITE_END()
#endif // KICAD_SPICE