2019-02-26 13:13:47 -06:00
# - Find the FLUTE includes and libraries.
# The following variables are set if Coriolis is found. If FLUTE is not
# found, FLUTE_FOUND is set to false.
# FLUTE_FOUND - True when the Coriolis include directory is found.
# FLUTE_INCLUDE_DIR - the path to where the Coriolis include files are.
# FLUTE_LIBRARIES - The path to where the Coriolis library files are.
2021-08-27 11:15:28 -05:00
set ( FLUTE_INCLUDE_PATH_DESCRIPTION "The directory containing the FLUTE include files. E.g /usr/local/include/coriolis2/flute/3.1 or /soc/coriolis2/include/coriolis2/flute/3.1" )
2019-02-26 13:13:47 -06:00
set ( FLUTE_DIR_MESSAGE "Set the FLUTE_INCLUDE_DIR cmake cache entry to the ${FLUTE_INCLUDE_PATH_DESCRIPTION}" )
if ( UNIX )
#
# Look for an installation.
#
find_path ( FLUTE_INCLUDE_PATH NAMES flute.h
P A T H S $ { C O R I O L I S _ D I R _ S E A R C H }
P A T H _ S U F F I X E S i n c l u d e / f l u t e / 3 . 1
D O C " $ { F L U 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 ( FLUTE_LIBRARY_PATH NAMES flute
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
2019-02-26 13:13:47 -06:00
D O C " $ { F L U 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 ( FLUTE FLUTE )
hurricane_check_libraries ( FLUTE )
endif ( UNIX )