CPackOptions.cmake.in 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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. if ( EXISTS "${CMAKE_SOURCE_DIR}/OEM.cmake" )
  11. include ( "${CMAKE_SOURCE_DIR}/OEM.cmake" )
  12. else ()
  13. include ( "${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake" )
  14. endif()
  15. set( CSYNC_BINARY_DIR @CSYNC_BINARY_DIR@ )
  16. set( MINGW_ROOT @CMAKE_FIND_ROOT_PATH@ )
  17. if(CSYNC_BINARY_DIR)
  18. set( CSYNC_LIBRARY_DIR "${CSYNC_BINARY_DIR}/src" )
  19. set( CSYNC_PLUGIN_DIR "${CSYNC_BINARY_DIR}/modules" )
  20. set( CSYNC_CONFIG_DIR "${CSYNC_BINARY_DIR}/config" )
  21. else()
  22. set( CSYNC_LIBRARY_DIR "${MINGW_ROOT}/bin" )
  23. set( CSYNC_PLUGIN_DIR "${MINGW_ROOT}/plugins-0" ) #FIXME: whatever it is
  24. set( CSYNC_CONFIG_DIR "${MINGW_ROOT}/etc/ocsync" )
  25. endif()
  26. set( BUILD_OWNCLOUD_OSX_BUNDLE @BUILD_OWNCLOUD_OSX_BUNDLE@)
  27. if(APPLE AND NOT BUILD_OWNCLOUD_OSX_BUNDLE)
  28. 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")
  29. endif()