2014-06-24 07:07:38 +00:00
|
|
|
#
|
2017-04-05 19:15:27 +00:00
|
|
|
# - Find macOS frameworks
|
|
|
|
# Find various macOS frameworks if we're on macOS
|
2014-06-24 07:07:38 +00:00
|
|
|
#
|
|
|
|
# APPLE_APPLICATION_SERVICES_LIBRARY - ApplicationServices framework
|
|
|
|
# APPLE_CORE_FOUNDATION_LIBRARY - CoreFoundation frameowkr
|
|
|
|
# APPLE_SYSTEM_CONFIGURATION_LIBRARY - SystemConfiguration framework
|
2017-06-16 08:49:44 +00:00
|
|
|
# HAVE_MACOS_FRAMEWORKS - True if we're on macOS
|
2014-06-24 07:07:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
#
|
2017-04-05 19:15:27 +00:00
|
|
|
# We assume that APPLE means macOS so that we have the macOS
|
2014-06-24 07:07:38 +00:00
|
|
|
# frameworks.
|
|
|
|
#
|
2017-06-16 08:49:44 +00:00
|
|
|
set(HAVE_MACOS_FRAMEWORKS 1)
|
|
|
|
set(MACOS_FRAMEWORKS_FOUND TRUE)
|
2014-06-24 07:07:38 +00:00
|
|
|
FIND_LIBRARY (APPLE_APPLICATION_SERVICES_LIBRARY ApplicationServices)
|
2018-04-09 09:39:49 +00:00
|
|
|
FIND_LIBRARY (APPLE_APPKIT_LIBRARY AppKit)
|
2014-06-24 07:07:38 +00:00
|
|
|
FIND_LIBRARY (APPLE_CORE_FOUNDATION_LIBRARY CoreFoundation)
|
|
|
|
FIND_LIBRARY (APPLE_SYSTEM_CONFIGURATION_LIBRARY SystemConfiguration)
|
|
|
|
endif()
|