aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindOS_X_FRAMEWORKS.cmake
blob: 74abccc4110fb498d255ccfccedb6ef58a36317e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# - Find OS X frameworks
# Find various OS X frameworks if we're on OS X
#
#  APPLE_APPLICATION_SERVICES_LIBRARY - ApplicationServices framework
#  APPLE_CORE_FOUNDATION_LIBRARY      - CoreFoundation frameowkr
#  APPLE_SYSTEM_CONFIGURATION_LIBRARY - SystemConfiguration framework
#  HAVE_OS_X_FRAMEWORKS               - True if we're on OS X


if(APPLE)
	#
	# We assume that APPLE means OS X so that we have the OS X
	# frameworks.
	#
	set(HAVE_OS_X_FRAMEWORKS 1)
	set(OS_X_FRAMEWORKS_FOUND TRUE)
	FIND_LIBRARY (APPLE_APPLICATION_SERVICES_LIBRARY ApplicationServices)
	FIND_LIBRARY (APPLE_CORE_FOUNDATION_LIBRARY CoreFoundation)
	FIND_LIBRARY (APPLE_SYSTEM_CONFIGURATION_LIBRARY SystemConfiguration)
endif()