IF (COREFOUNDATION_INCLUDE_DIR AND COREFOUNDATION_DIRS)
  SET(COREFOUNDATION_FOUND TRUE)
ELSE ()
  FIND_PATH(COREFOUNDATION_INCLUDE_DIR NAMES CoreFoundation.h)
  FIND_LIBRARY(COREFOUNDATION_DIRS NAMES CoreFoundation)
  IF (COREFOUNDATION_INCLUDE_DIR AND COREFOUNDATION_DIRS)
    SET(COREFOUNDATION_FOUND TRUE)
  ENDIF ()
ENDIF ()
