FindCoreFoundation.cmake 586 B

12345678910111213141516171819202122
  1. # -----------------------------------------------------------------------------
  2. # Find IOKit framework (Mac OS X).
  3. #
  4. # Define:
  5. # CoreFoundation_FOUND
  6. # CoreFoundation_INCLUDE_DIR
  7. # CoreFoundation_LIBRARY
  8. set(CoreFoundation_FOUND false)
  9. set(CoreFoundation_INCLUDE_DIR)
  10. set(CoreFoundation_LIBRARY)
  11. if(APPLE)
  12. # The only platform it makes sense to check for CoreFoundation
  13. find_library(CoreFoundation CoreFoundation)
  14. if(CoreFoundation)
  15. set(CoreFoundation_FOUND true)
  16. set(CoreFoundation_INCLUDE_DIR ${CoreFoundation})
  17. set(CoreFoundation_LIBRARY ${CoreFoundation})
  18. endif()
  19. endif()