1if(APPLE)
2
3	###### The user may set the app name, causing a standalone build
4	######	cmake -D standalone:string=MyFabApp ../
5	if ("${standalone}" STREQUAL "")
6		set(scappbundlename ${PROJECT_NAME})
7	else()
8		# We're building a standalone, change the app name.
9		set(scappbundlename ${standalone})
10		message(STATUS "Building sc in STANDALONE mode. App name: " ${standalone})
11	endif()
12
13	set(scappauxresourcesdir "${scappbundlename}/${scappbundlename}.app/Contents/Resources" CACHE STRING "Installation path for the Resourcedir")
14	set(scappbindir "${scappbundlename}/${scappbundlename}.app/Contents/MacOS" CACHE STRING "Installation path for the Bindir")
15
16	###### Allow user to select a FHS-style install
17	# TODO not yet used
18	option(INSTALL_FHS
19		"use FHS-style install (e.g. to /usr/local) rather than to a mac-style app folder"
20		FALSE)
21
22endif(APPLE)
23