2015-04-08 05:06:14 -05:00
# - Find the Coloquinte includes and libraries.
# The following variables are set if Coriolis is found. If COLOQUINTE is not
# found, COLOQUINTE_FOUND is set to false.
# COLOQUINTE_FOUND - True when the Coriolis include directory is found.
# COLOQUINTE_INCLUDE_DIR - the path to where the Coriolis include files are.
# COLOQUINTE_LIBRARIES - The path to where the Coriolis library files are.
2021-08-27 11:15:28 -05:00
SET ( COLOQUINTE_INCLUDE_PATH_DESCRIPTION "directory containing the Coloquinte include files. E.g /usr/local/include/coriolis2 or /asim/coriolis/include/coriolis2" )
2015-04-08 05:06:14 -05:00
SET ( COLOQUINTE_DIR_MESSAGE "Set the COLOQUINTE_INCLUDE_DIR cmake cache entry to the ${COLOQUINTE_INCLUDE_PATH_DESCRIPTION}" )
# don't even bother under WIN32
IF ( UNIX )
#
# Look for an installation.
#
FIND_PATH ( COLOQUINTE_INCLUDE_PATH NAMES coloquinte/netlist.hxx PATHS
# Look in other places.
$ { C O R I O L I S _ D I R _ S E A R C H }
2015-04-08 10:45:45 -05:00
P A T H _ S U F F I X E S i n c l u d e / c o r i o l i s 2
2015-04-08 05:06:14 -05:00
# Help the user find it if we cannot.
D O C " T h e $ { C O L O Q U I N T E _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
FIND_LIBRARY ( COLOQUINTE_LIBRARY_PATH
N A M E S c o l o q u i n t e
P A T H S $ { C O R I O L I S _ D I R _ S E A R C H }
2020-03-19 12:18:35 -05:00
P A T H _ S U F F I X E S l i b 6 4 l i b
2015-04-08 05:06:14 -05:00
# Help the user find it if we cannot.
D O C " T h e $ { C O L O Q U I N T E _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
SET_LIBRARIES_PATH ( COLOQUINTE COLOQUINTE )
HURRICANE_CHECK_LIBRARIES ( COLOQUINTE )
ENDIF ( UNIX )