Cannot use indentation for CMAKE example - on mac it is rendered as
[supercollider.git] / cmake_modules / MacAppFolder.cmake
blob789d8d94f6b8c0cf435df1fa0ce7b7eb404662dd
1 if(APPLE)
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")
15         ###### Allow user to select a FHS-style install
16         # TODO not yet used
17         option(INSTALL_FHS
18                 "use FHS-style install (e.g. to /usr/local) rather than to a mac-style app folder"
19                 FALSE)
20         
21 endif(APPLE)