Add NGSPICE_ROOT_DIR parameter for libngspice CMake script
This commit is contained in:
parent
75f8b20493
commit
6e4d6c445c
|
@ -3,12 +3,13 @@
|
||||||
# Author: Maciej Suminski <maciej.suminski@cern.ch>
|
# Author: Maciej Suminski <maciej.suminski@cern.ch>
|
||||||
|
|
||||||
find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h
|
find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h
|
||||||
PATHS ${NGSPICE_INCLUDE_PATH}
|
PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_INCLUDE_PATH}
|
||||||
PATH_SUFFIXES share/ngspice/include
|
PATH_SUFFIXES src/include share/ngspice/include
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library( NGSPICE_LIBRARY ngspice
|
find_library( NGSPICE_LIBRARY ngspice
|
||||||
PATHS ${NGSPICE_LIBRARY_PATH}
|
PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_LIBRARY_PATH}
|
||||||
|
PATH_SUFFIXES src/.libs
|
||||||
)
|
)
|
||||||
|
|
||||||
include( FindPackageHandleStandardArgs )
|
include( FindPackageHandleStandardArgs )
|
||||||
|
|
Loading…
Reference in New Issue