From b1ff88e96e5dd68ef22ffcc2bdbca1ead69b9390 Mon Sep 17 00:00:00 2001 From: Bryan Wilder Field Lozano Date: Fri, 11 Oct 2024 16:27:25 -0700 Subject: [PATCH] #7915: Add CPACK to generate debian (#13703) --- CMakeLists.txt | 10 +++++++--- cmake/packaging.cmake | 6 ++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 cmake/packaging.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 521ec920bd6..f2e51df9100 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,9 +29,9 @@ if(${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR}) message(FATAL_ERROR "CMake generation is not allowed within source directory!! Please set a build folder with '-B'!!") endif() -project(tt-metal - VERSION 1.0 - DESCRIPTION "Tenstorrent Metallium" +project(Metalium + VERSION 0.50.0 + DESCRIPTION "Tenstorrent Metalium" HOMEPAGE_URL "https://github.com/tenstorrent/tt-metal" LANGUAGES CXX ) @@ -292,3 +292,7 @@ add_custom_target(clean-built COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_SOURCE_DIR}/built COMMENT "Cleaning `built` directory" ) + +# Debian Package +include(cmake/packaging.cmake) + diff --git a/cmake/packaging.cmake b/cmake/packaging.cmake new file mode 100644 index 00000000000..473f8e4b8ab --- /dev/null +++ b/cmake/packaging.cmake @@ -0,0 +1,6 @@ + +set(CPACK_GENERATOR "DEB") +set(CPACK_DEBIAN_PACKAGE_MAINTAINER "support@tenstorrent.com") +#set(CPACK_DEBIAN_PACKAGE_DEPENDS "") + +include(CPack)