diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2012-04-16 12:51:20 +0400 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2012-04-16 15:03:20 +0400 |
commit | ccac3dcf9546ddc7287416f9ca20c48809f3b4b0 (patch) | |
tree | 2d1b992e4f87f70025b82a6a2ab98b2ff099d662 /CMakeLists.txt | |
parent | 508d05336b365777fc5d46a5b76638c916ebb1ef (diff) |
Make it buildable as bundle on OSX
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 999265015..4ebb96c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,12 @@ set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ) include(${CMAKE_SOURCE_DIR}/VERSION.cmake) include(GNUInstallDirs) +if(NOT DEFINED BUILD_OWNCLOUD_OSX_BUNDLE OR NOT APPLE) + set(BUILD_OWNCLOUD_OSX_BUNDLE OFF) +elseif(BUILD_OWNCLOUD_OSX_BUNDLE) + set(OWNCLOUD_OSX_BUNDLE "owncloud.app") +endif() + find_package(Qt4 4.4.3 COMPONENTS QtCore QtGui QtXml QtNetwork QtTest REQUIRED ) find_package(Csync) @@ -56,6 +62,9 @@ set(TRANSLATIONS ${CMAKE_SOURCE_DIR}/translations/mirall_de.ts) add_subdirectory(src) # add_subdirectory(test) -install( FILES exclude.lst DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) - +if(BUILD_OWNCLOUD_OSX_BUNDLE) + install( FILES exclude.lst DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources ) +else() + install( FILES exclude.lst DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} ) +endif() |