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})
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})
13 ###### By default on mac, we tell cmake not to install to system but to an app folder.
14 ###### You might like to install straight to /Applications - like this:
15 ###### cmake -D scappdir:string=/Applications/SuperCollider ../
16 if ("${scappdir}" STREQUAL "")
17 set(scappdir "${CMAKE_BINARY_DIR}/${scappbundlename}")
20 # For standalone, many things go into the bundle rather than beside it
21 if ("${standalone}" STREQUAL "")
22 set(scappauxresourcesdir ${scappdir})
24 set(scappauxresourcesdir "${scappdir}/${scappbundlename}.app/Contents/Resources")
27 ###### Allow user to select a FHS-style install
30 "use FHS-style install (e.g. to /usr/local) rather than to a mac-style app folder"