CPackOptions.cmake.in 1.1 KB

1234567891011121314151617181920212223242526
  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( CRASHREPORTER_EXECUTABLE @CRASHREPORTER_EXECUTABLE@)
  17. set( BUILD_OWNCLOUD_OSX_BUNDLE @BUILD_OWNCLOUD_OSX_BUNDLE@)
  18. if(APPLE AND NOT BUILD_OWNCLOUD_OSX_BUNDLE)
  19. message( FATAL_ERROR "You're trying to build a bundle although you haven't built the client in bundle mode.\n Add -DBUILD_OWNCLOUD_OSX_BUNDLE=ON")
  20. endif()