Source

rbdl / generator / CMake / FindGINAC.cmake

# - Try to find ginac
#
#

SET (GINAC_FOUND FALSE)

FIND_PATH (GINAC_INCLUDE_DIR ginac.h /usr/include/ginac /usr/local/include/ginac $ENV{GINAC_PATH}/src $ENV{GINAC_INCLUDE_PATH})

FIND_LIBRARY (GINAC_LIBRARY NAMES ginac PATHS /usr/lib /usr/local/lib $ENV{GINAC_PATH} ENV{GINAC_LIBRARY_PATH})

IF (GINAC_INCLUDE_DIR AND GINAC_LIBRARY)
	SET (GINAC_FOUND TRUE)
ENDIF (GINAC_INCLUDE_DIR AND GINAC_LIBRARY)

IF (GINAC_FOUND)
   IF (NOT ginac_FIND_QUIETLY)
      MESSAGE(STATUS "Found GiNaC: ${GINAC_LIBRARY}")
   ENDIF (NOT ginac_FIND_QUIETLY)
ELSE (GINAC_FOUND)
   IF (ginac_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find GiNaC")
   ENDIF (ginac_FIND_REQUIRED)
ENDIF (GINAC_FOUND)

MARK_AS_ADVANCED (
	GINAC_INCLUDE_DIR
	GINAC_LIBRARY
	)