diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2013-01-09 19:29:50 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2013-01-10 20:16:59 +0400 |
commit | 5c495265f4f0fc49d23519b198f0f6b2d1606a03 (patch) | |
tree | 373f4b07e617118b9c8743dd6f178f865421b0f1 /OwnCloudCPack.cmake | |
parent | 9cdf2d815086eb716a00591f8583e5d993522b12 (diff) |
Consolidate theming support.
This implements out-of-repository-theming, and removes the old
custom.ini theming that never worked on all platforms and had
no straight deployment story.
The new approach requires the CMAKE variable OEM_THEME_DIR to
point to a directory that must at least contain an OEM.cmake file
(check OWNCLOUD.cmake for possible options) as well as a themes.qrc
and a themes/ directory that directly correspond to the ones in
the source tree.
Diffstat (limited to 'OwnCloudCPack.cmake')
-rw-r--r-- | OwnCloudCPack.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OwnCloudCPack.cmake b/OwnCloudCPack.cmake index 7c9f9c156..e0a90bfe2 100644 --- a/OwnCloudCPack.cmake +++ b/OwnCloudCPack.cmake @@ -2,8 +2,8 @@ include( InstallRequiredSystemLibraries ) set( CPACK_PACKAGE_CONTACT "Dominik Schmidt <domme@tomahawk-player.org>" ) -if ( EXISTS "${CMAKE_SOURCE_DIR}/OEM.cmake" ) - include ( "${CMAKE_SOURCE_DIR}/OEM.cmake" ) +if ( DEFINED OEM_THEME_DIR AND EXISTS ${OEM_THEME_DIR}/OEM.cmake ) + include ( "${OEM_THEME_DIR}/OEM.cmake" ) else () include ( "${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake" ) endif() |