2012-04-02 15:44:24 +04:00
# This file is configured at cmake time, and loaded at cpack time.
# To pass variables to cpack from cmake, they must be configured
# in this file.
if ( CPACK_GENERATOR MATCHES "NSIS" )
SET ( CPACK_PACKAGE_ICON @CMAKE_SOURCE_DIR@/admin/win/nsi/installer.ico ) # A branding image that will be displayed on the top bar inside the installer. installer.bmp
SET ( CPACK_NSIS_COMPRESSOR "/SOLID lzma" ) # The arguments that will be passed to the NSIS SetCompressor command. /SOLID lzma
endif ( CPACK_GENERATOR MATCHES "NSIS" )
2012-04-26 18:55:14 +04:00
set ( CMAKE_SOURCE_DIR @CMAKE_SOURCE_DIR@ )
set ( CMAKE_BINARY_DIR @CMAKE_BINARY_DIR@ )
2013-01-09 19:29:50 +04:00
set ( OEM_THEME_DIR @OEM_THEME_DIR@ )
2012-04-26 18:55:14 +04:00
2013-01-09 19:29:50 +04:00
if ( DEFINED OEM_THEME_DIR AND EXISTS ${ OEM_THEME_DIR } /OEM.cmake )
include ( ${ OEM_THEME_DIR } /OEM.cmake )
2012-09-20 11:19:26 +04:00
else ( )
include ( "${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake" )
endif ( )
2012-04-26 19:16:34 +04:00
2012-04-26 18:55:14 +04:00
set ( CSYNC_BINARY_DIR @CSYNC_BINARY_DIR@ )
2012-04-26 19:16:34 +04:00
set ( MINGW_ROOT @CMAKE_FIND_ROOT_PATH@ )
if ( CSYNC_BINARY_DIR )
set ( CSYNC_LIBRARY_DIR "${CSYNC_BINARY_DIR}/src" )
set ( CSYNC_PLUGIN_DIR "${CSYNC_BINARY_DIR}/modules" )
set ( CSYNC_CONFIG_DIR "${CSYNC_BINARY_DIR}/config" )
else ( )
set ( CSYNC_LIBRARY_DIR "${MINGW_ROOT}/bin" )
2012-10-05 12:10:00 +04:00
set ( CSYNC_PLUGIN_DIR "${MINGW_ROOT}/plugins-0" ) #FIXME: whatever it is
2012-10-09 03:37:14 +04:00
set ( CSYNC_CONFIG_DIR "${MINGW_ROOT}/etc/ocsync" )
2012-04-26 18:55:14 +04:00
endif ( )
2012-05-16 17:11:30 +04:00
set ( BUILD_OWNCLOUD_OSX_BUNDLE @BUILD_OWNCLOUD_OSX_BUNDLE@ )
2012-06-05 18:31:51 +04:00
if ( APPLE AND NOT BUILD_OWNCLOUD_OSX_BUNDLE )
2012-07-31 03:43:41 +04:00
message ( FATAL_ERROR "You're trying to build a bundle although you haven't built mirall in bundle mode.\n Add -DBUILD_OWNCLOUD_OSX_BUNDLE=ON" )
2012-05-16 17:11:30 +04:00
endif ( )