Attempt to fix compile.

This commit is contained in:
Jeff Young 2022-08-01 13:09:41 +01:00
parent 7556d7152f
commit 90a98478b5
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,19 @@
include_directories( BEFORE ${INC_BEFORE} )
if( KICAD_SPICE )
set( INC_AFTER ${INC_AFTER} ${NGSPICE_INCLUDE_DIR} )
# Find out the exact libngspice file name
get_filename_component( NGSPICE_DLL_ABSPATH "${NGSPICE_DLL}" ABSOLUTE )
get_filename_component( NGSPICE_DLL_FILE "${NGSPICE_DLL_ABSPATH}" NAME )
set_property( SOURCE sim/ngspice.cpp
APPEND PROPERTY COMPILE_DEFINITIONS
NGSPICE_DLL_FILE="${NGSPICE_DLL_FILE}"
)
endif()
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/include