FindSMV.cmake 810 Bytes
Newer Older
1 2

SET(SMV_SEARCH_PATHS 
3 4 5 6
	${CMAKE_SOURCE_DIR}/ThirdParty/libsmv/build/lib
	${CMAKE_SOURCE_DIR}/../ThirdParty/libsmv/build/lib
    ${CMAKE_SOURCE_DIR}/ThirdParty/dist/build/lib
    ${CMAKE_SOURCE_DIR}/../ThirdParty/dist/build/lib)
7

8
FIND_PATH(SMV_INCLUDE_DIR NAMES smv.h PATHS ${SMV_SEARCH_PATHS})
9 10 11 12 13 14
FIND_LIBRARY(SMV_LIBRARY NAMES smv PATHS ${SMV_SEARCH_PATHS})


SET(SMV_FOUND FALSE)
IF (SMV_LIBRARY)
  SET(SMV_FOUND TRUE)
15
  INCLUDE_DIRECTORIES(${SMV_INCLUDE_DIR})
16 17 18 19 20 21 22 23 24 25 26 27 28
  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)