FindXXT.cmake 724 Bytes
Newer Older
Chris Cantwell's avatar
Chris Cantwell committed
1 2

SET(XXT_SEARCH_PATHS 
3 4 5 6
	${CMAKE_SOURCE_DIR}/ThirdParty/gsmpi-1.2/
	${CMAKE_SOURCE_DIR}/ThirdParty/gsmpi-1.2/build/
	${CMAKE_SOURCE_DIR}/../ThirdParty/gsmpi-1.2/
	${CMAKE_SOURCE_DIR}/../ThirdParty/gsmpi-1.2/build 
Chris Cantwell's avatar
Chris Cantwell committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    ${CMAKE_SOURCE_DIR}/ThirdParty/dist/lib 
    ${CMAKE_SOURCE_DIR}/../ThirdParty/dist/lib)

FIND_LIBRARY(XXT_LIBRARY NAMES xxt PATHS ${XXT_SEARCH_PATHS})

SET(XXT_FOUND FALSE)
IF (XXT_LIBRARY)
  SET(XXT_FOUND TRUE)
  MARK_AS_ADVANCED(XXT_LIBRARY)
ENDIF (XXT_LIBRARY)

IF (XXT_FOUND)
  IF (NOT XXT_FIND_QUIETLY)
     MESSAGE(STATUS "Found XXT")
  ENDIF (NOT XXT_FIND_QUIETLY)
ELSE(XXT_FOUND)
  IF (XXT_FIND_REQUIRED)
     MESSAGE(FATAL_ERROR "Could not find XXT")
  ENDIF (XXT_FIND_REQUIRED)
ENDIF (XXT_FOUND)