2016-08-12 13:56:51 +00:00
|
|
|
# CMake script for finding libngspice
|
|
|
|
# (C) CERN 2016
|
|
|
|
# Author: Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
|
|
|
|
find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h
|
2016-08-15 12:39:26 +00:00
|
|
|
PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_INCLUDE_PATH}
|
2016-08-15 13:27:24 +00:00
|
|
|
PATH_SUFFIXES src/include share/ngspice/include share/ngspice/include/ngspice
|
2016-08-12 13:56:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library( NGSPICE_LIBRARY ngspice
|
2016-08-15 12:39:26 +00:00
|
|
|
PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_LIBRARY_PATH}
|
2016-08-15 13:27:24 +00:00
|
|
|
PATH_SUFFIXES src/.libs lib
|
2016-08-12 13:56:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include( FindPackageHandleStandardArgs )
|
|
|
|
|
|
|
|
find_package_handle_standard_args( ngspice
|
|
|
|
REQUIRED_VARS
|
|
|
|
NGSPICE_INCLUDE_DIR
|
|
|
|
NGSPICE_LIBRARY
|
|
|
|
)
|
|
|
|
|
|
|
|
mark_as_advanced(
|
|
|
|
NGSPICE_INCLUDE_DIR
|
|
|
|
NGSPICE_LIBRARY
|
|
|
|
)
|