2010-03-09 09:20:13 -06:00
# - Find the Coriolis includes and libraries.
2010-03-18 10:32:24 -05:00
# The following variables are set if Coriolis is found.
# If Coriolis is not found, CRLCORE_FOUND is set to false.
# CRLCORE_FOUND - True when the Coriolis include directory is found.
# CRLCORE_INCLUDE_DIR - the path to where the Coriolis include files are.
# CRLCORE_LIBRARIES - The path to where the Coriolis library files are.
2010-03-09 09:20:13 -06:00
SET ( CORIOLIS_INCLUDE_PATH_DESCRIPTION "directory containing the Coriolis include files. E.g /usr/local/include/coriolis or /asim/coriolis/include/coriolis" )
SET ( CORIOLIS_DIR_MESSAGE "Set the CORIOLIS_INCLUDE_DIR cmake cache entry to the ${CORIOLIS_INCLUDE_PATH_DESCRIPTION}" )
# don't even bother under WIN32
IF ( UNIX )
2010-03-19 09:22:18 -05:00
SETUP_SEARCH_DIR ( CORIOLIS )
2010-03-09 09:20:13 -06:00
#
# Look for an installation.
#
FIND_PATH ( CRLCORE_INCLUDE_PATH NAMES crlcore/ToolEngine.h PATHS
# Look in other places.
$ { C O R I O L I S _ D I R _ S E A R C H }
2010-05-18 07:53:04 -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 i n c l u d e
2010-03-09 09:20:13 -06:00
# Help the user find it if we cannot.
D O C " T h e $ { C O R I O L I S _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
FIND_LIBRARY ( CRLCORE_LIBRARY_PATH
N A M E S c r l c o r e
P A T H S $ { C O R I O L I S _ D I R _ S E A R C H }
2010-05-19 09:31:04 -05:00
P A T H _ S U F F I X E S l i b $ { L I B _ S U F F I X }
2010-03-09 09:20:13 -06:00
# Help the user find it if we cannot.
D O C " T h e $ { C O R I O L I S _ I N C L U D E _ P A T H _ D E S C R I P T I O N } "
)
2010-07-12 10:09:29 -05:00
FIND_PATH ( CORIOLIS_PYTHON_INCLUDE_PATH
N A M E S c r l c o r e / P y A l l i a n c e F r a m e w o r k . 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 / c o r i o l i s 2 i n c l u d e
# Help the user find it if we cannot.
D O C " $ { C O R I O L I S _ L I B R A R Y _ P A T H _ D E S C R I P T I O N } "
)
FIND_LIBRARY ( CORIOLIS_PYTHON_LIBRARY_PATH
N A M E S p y c r l c o r e
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 l i b $ { L I B _ S U F F I X }
# Help the user find it if we cannot.
D O C " $ { C O R I O L I S _ L I B R A R Y _ P A T H _ D E S C R I P T I O N } "
)
2010-03-09 09:20:13 -06:00
SET_LIBRARIES_PATH ( CORIOLIS CRLCORE )
2010-07-12 10:09:29 -05:00
SET_LIBRARIES_PATH ( CORIOLIS_PYTHON CORIOLIS_PYTHON )
2010-03-09 09:20:13 -06:00
HURRICANE_CHECK_LIBRARIES ( CORIOLIS )
2010-07-12 10:09:29 -05:00
HURRICANE_CHECK_LIBRARIES ( CORIOLIS_PYTHON ${ CORIOLIS_FIND_REQUIRED } )
2010-03-09 09:20:13 -06:00
ENDIF ( UNIX )