CPackOptions.cmake.in 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. # This file is configured at cmake time, and loaded at cpack time.
  2. # To pass variables to cpack from cmake, they must be configured
  3. # in this file.
  4. if(CPACK_GENERATOR MATCHES "NSIS")
  5. 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
  6. SET( CPACK_NSIS_COMPRESSOR "/SOLID lzma" ) # The arguments that will be passed to the NSIS SetCompressor command. /SOLID lzma
  7. endif(CPACK_GENERATOR MATCHES "NSIS")
  8. set( CMAKE_SOURCE_DIR @CMAKE_SOURCE_DIR@ )
  9. set( CMAKE_BINARY_DIR @CMAKE_BINARY_DIR@ )
  10. set( OEM_THEME_DIR @OEM_THEME_DIR@ )
  11. if ( DEFINED OEM_THEME_DIR AND EXISTS ${OEM_THEME_DIR}/OEM.cmake )
  12. include ( ${OEM_THEME_DIR}/OEM.cmake )
  13. else ()
  14. include ( "${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake" )
  15. endif()
  16. set( CSYNC_BINARY_DIR @CSYNC_BINARY_DIR@ )
  17. set( MINGW_ROOT @CMAKE_FIND_ROOT_PATH@ )
  18. if(CSYNC_BINARY_DIR)
  19. set( CSYNC_LIBRARY_DIR "${CSYNC_BINARY_DIR}/src" )
  20. set( CSYNC_CONFIG_DIR "${CSYNC_BINARY_DIR}/config" )
  21. else()
  22. set( CSYNC_LIBRARY_DIR "${MINGW_ROOT}/bin" )
  23. set( CSYNC_CONFIG_DIR "${MINGW_ROOT}/etc/ocsync" )
  24. endif()
  25. set( BUILD_OWNCLOUD_OSX_BUNDLE @BUILD_OWNCLOUD_OSX_BUNDLE@)
  26. if(APPLE AND NOT BUILD_OWNCLOUD_OSX_BUNDLE)
  27. 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")
  28. endif()