TEXT   50

CPackConfig

Guest on 5th August 2022 01:37:33 AM

  1. set(CPACK_PACKAGE_VENDOR "Ultimaker")
  2. set(CPACK_PACKAGE_CONTACT "Arjan Hiemstra <a.hiemstra@gmail.com>")
  3. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Cura Engine")
  4. set(CPACK_PACKAGE_VERSION "15.05.90" CACHE STRING "Cura Engine Package Version")
  5. set(CPACK_GENERATOR "DEB")
  6. if(NOT DEFINED CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
  7.   execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
  8. endif()
  9. set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  10.  
  11. set(MINIMAL_ARCUS_VERSION "15.05.90" CACHE STRING "Minimal Arcus Version")
  12.  
  13. set(DEB_DEPENDS
  14.     "arcus (>= ${MINIMAL_ARCUS_VERSION})"
  15.     "python3-protobuf (>= 3.0.0)"
  16.     "libstdc++6 (>= 4.9.0)"
  17.     "libgcc1 (>= 4.9.0)"
  18. )
  19. string(REPLACE ";" ", " DEB_DEPENDS "${DEB_DEPENDS}")
  20. set(CPACK_DEBIAN_PACKAGE_DEPENDS ${DEB_DEPENDS})
  21.  
  22. include(CPack)

Raw Paste


Login or Register to edit or fork this paste. It's free.