Add NGSPICE_ROOT_DIR parameter for libngspice CMake script

This commit is contained in:
Maciej Suminski 2016-08-15 14:39:26 +02:00
parent 75f8b20493
commit 6e4d6c445c
1 changed files with 4 additions and 3 deletions

View File

@ -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 )