FindAccelerateFramework.cmake 699 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

FIND_PATH(ACCELERATE_FRAMEWORK_INCLUDE_DIR cblas.h /usr/include /usr/local/include
	/System/Library/Frameworks/vecLib.framework/Versions/A/Headers/ )

MARK_AS_ADVANCED(ACCELERATE_FRAMEWORK_INCLUDE_DIR)

SET( ACCELERATE_FRAMEWORK_LINK_FLAGS "-framework Accelerate" )

IF (ACCELERATE_FRAMEWORK_FOUND)
  IF (NOT ACCELERATE_FRAMEWORK_FIND_QUIETLY)
     MESSAGE(STATUS "Found ACCELERATE_FRAMEWORK: ${ACCELERATE_FRAMEWORK_INCLUDE_DIR}")
  ENDIF (NOT ACCELERATE_FRAMEWORK_FIND_QUIETLY)
ELSE(ACCELERATE_FRAMEWORK_FOUND)
  IF (ACCELERATE_FRAMEWORK_FIND_REQUIRED)
     MESSAGE(FATAL_ERROR "Could not find ACCELERATE_FRAMEWORK")
  ENDIF (ACCELERATE_FRAMEWORK_FIND_REQUIRED)
ENDIF (ACCELERATE_FRAMEWORK_FOUND)