diff --git a/vlsisapd/cmake_modules/FindVLSISAPD.cmake b/vlsisapd/cmake_modules/FindVLSISAPD.cmake index 2e6dd09c..a16eef12 100644 --- a/vlsisapd/cmake_modules/FindVLSISAPD.cmake +++ b/vlsisapd/cmake_modules/FindVLSISAPD.cmake @@ -59,6 +59,12 @@ IF(VLSISAPD_DIR_SEARCH) SET_FOUND (DTR) MESSAGE("-- DTR: ${DTR_LIBRARY}") + # SPICE + FIND_PATH (SPICE_INCLUDE_DIR NAMES vlsisapd/spice/Circuit.h PATHS ${VLSISAPD_DIR_SEARCH} PATH_SUFFIXES include) + FIND_LIBRARY(SPICE_LIBRARY NAMES spice PATHS ${VLSISAPD_DIR_SEARCH} PATH_SUFFIXES lib${LIB_SUFFIX}) + SET_FOUND (SPICE) + MESSAGE("-- SPICE: ${SPICE_LIBRARY}") + # Bookshelf FIND_PATH (BOOKSHELF_INCLUDE_DIR NAMES vlsisapd/bookshelf/Circuit.h PATHS ${VLSISAPD_DIR_SEARCH} PATH_SUFFIXES include) FIND_LIBRARY(BOOKSHELF_LIBRARY NAMES bookshelf PATHS ${VLSISAPD_DIR_SEARCH} PATH_SUFFIXES lib${LIB_SUFFIX}) @@ -71,11 +77,11 @@ IF(VLSISAPD_DIR_SEARCH) SET_FOUND (CONFIGURATION) MESSAGE("-- Configuration: ${CONFIGURATION_LIBRARY}") - IF(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND) + IF(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND OR SPICE_FOUND) SET(VLSISAPD_FOUND TRUE) - ELSE(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND) + ELSE(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND OR SPICE_FOUND) SET(VLSISAPD_FOUND FALSE) - ENDIF(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND) + ENDIF(AGDS_FOUND OR CIF_FOUND OR OPENCHAMS_FOUND OR DTR_FOUND OR SPICE_FOUND) ELSE(VLSISAPD_DIR_SEARCH) MESSAGE("-- Cannot find VLSISAPD_LIBRARIES since VLSISAPD_DIR_SEARCH is not defined.") ENDIF(VLSISAPD_DIR_SEARCH)