2010-03-09 09:23:58 -06:00
# - Find the Knik includes and libraries.
# The following variables are set if Coriolis is found. If KNIK is not
# found, KNIK_FOUND is set to false.
# KNIK_FOUND - True when the Coriolis include directory is found.
# KNIK_INCLUDE_DIR - the path to where the Coriolis include files are.
# KNIK_LIBRARIES - The path to where the Coriolis library files are.
2021-08-27 11:15:28 -05:00
SET ( KNIK_INCLUDE_PATH_DESCRIPTION "directory containing the Knik/flute include files. E.g /usr/local/include/coriolis2 or /asim/coriolis/include/coriolis2" )
2010-03-09 09:23:58 -06:00
SET ( KNIK_DIR_MESSAGE "Set the KNIK_INCLUDE_DIR cmake cache entry to the ${KNIK_INCLUDE_PATH_DESCRIPTION}" )
# don't even bother under WIN32
IF ( UNIX )
#
# Look for an installation.
#
FIND_PATH ( KNIK_INCLUDE_PATH NAMES knik/KnikEngine.h PATHS
# Look in other places.
2010-03-18 10:32:30 -05:00
$ { C O R I O L I S _ D I R _ S E A R C H }
2021-08-27 10:16:06 -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
2010-03-09 09:23:58 -06:00
# Help the user find it if we cannot.
D O C " T h e $ { K N I K _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
FIND_LIBRARY ( KNIK_LIBRARY_PATH
N A M E S k n i k
2010-03-18 10:32:30 -05:00
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
2010-03-09 09:23:58 -06:00
# Help the user find it if we cannot.
D O C " T h e $ { K N I K _ 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
N A M E S f l u t e
2010-03-18 10:32:30 -05:00
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
2010-03-09 09:23:58 -06:00
# Help the user find it if we cannot.
D O C " T h e $ { K N I K _ 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 ( KNIK FLUTE )
SET_LIBRARIES_PATH ( KNIK KNIK )
HURRICANE_CHECK_LIBRARIES ( KNIK )
ENDIF ( UNIX )