FindSMV.cmake 775 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

SET(SMV_SEARCH_PATHS 
	${CMAKE_SOURCE_DIR}/ThirdParty/libsmv/lib
	${CMAKE_SOURCE_DIR}/../ThirdParty/libsmv/lib
    ${CMAKE_SOURCE_DIR}/ThirdParty/dist/lib
    ${CMAKE_SOURCE_DIR}/../ThirdParty/dist/lib
    CACHE PATH "SMV include path")

FIND_PATH(SMV_INCLUDE_DIR libsmv.h PATHS ${SMV_SEARCH_PATHS})
FIND_LIBRARY(SMV_LIBRARY NAMES smv PATHS ${SMV_SEARCH_PATHS})


SET(SMV_FOUND FALSE)
IF (SMV_LIBRARY)
  SET(SMV_FOUND TRUE)
  MARK_AS_ADVANCED(SMV_LIBRARY)
  MARK_AS_ADVANCED(SMV_INCLUDE_DIR)
ENDIF (SMV_LIBRARY)

IF (SMV_FOUND)
  IF (NOT SMV_FIND_QUIETLY)
     MESSAGE(STATUS "Found SMV: ${SMV_INCLUDE_DIR}")
  ENDIF (NOT SMV_FIND_QUIETLY)
ELSE(SMV_FOUND)
  IF (SMV_FIND_REQUIRED)
     MESSAGE(FATAL_ERROR "Could not find SMV")
  ENDIF (SMV_FIND_REQUIRED)
ENDIF (SMV_FOUND)