2016-05-23 09:15:25 -05:00
# - Find the Katabatic includes and libraries.
# The following variables are set if Coriolis is found. If ANABATIC is not
# found, ANABATIC_FOUND is set to false.
# ANABATIC_FOUND - True when the Coriolis include directory is found.
# ANABATIC_INCLUDE_DIR - the path to where the Coriolis include files are.
# ANABATIC_LIBRARIES - The path to where the Coriolis library files are.
2021-08-27 11:15:28 -05:00
SET ( ANABATIC_INCLUDE_PATH_DESCRIPTION "directory containing the Katabatic include files. E.g /usr/local/include/coriolis2 or /asim/coriolis/include/coriolis2" )
2016-05-23 09:15:25 -05:00
SET ( ANABATIC_DIR_MESSAGE "Set the ANABATIC_INCLUDE_DIR cmake cache entry to the ${ANABATIC_INCLUDE_PATH_DESCRIPTION}" )
# don't even bother under WIN32
IF ( UNIX )
#
# Look for an installation.
#
FIND_PATH ( ANABATIC_INCLUDE_PATH NAMES anabatic/AnabaticEngine.h PATHS
# Look in other places.
$ { C O R I O L I S _ D I R _ S E A R C H }
2021-08-27 09:36:23 -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
2016-05-23 09:15:25 -05:00
# Help the user find it if we cannot.
D O C " T h e $ { A N A B A T I C _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
FIND_LIBRARY ( ANABATIC_LIBRARY_PATH
N A M E S a n a b a t i c
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
2016-05-23 09:15:25 -05:00
# Help the user find it if we cannot.
D O C " T h e $ { A N A B A T I C _ 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 ( ANABATIC ANABATIC )
HURRICANE_CHECK_LIBRARIES ( ANABATIC )
ENDIF ( UNIX )