Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / cmake_modules / MacAppFolder.cmake
blob5ef10fb21095794f65ba6c373b6ce0113937b661
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                 if (SC_IDE)
7                         set(scappbundlename ${PROJECT_NAME})
8                 else()
9                         set(scappbundlename ${PROJECT_NAME}Cocoa)
10                 endif()
11         else()
12                 # We're building a standalone, change the app name.
13                 set(scappbundlename ${standalone})
14                 message(STATUS "Building sc in STANDALONE mode. App name: " ${standalone})
15         endif()
17         set(scappauxresourcesdir "${scappbundlename}/${scappbundlename}.app/Contents/Resources")
19         ###### Allow user to select a FHS-style install
20         # TODO not yet used
21         option(INSTALL_FHS
22                 "use FHS-style install (e.g. to /usr/local) rather than to a mac-style app folder"
23                 FALSE)
25 endif(APPLE)