Skip to content

Commit

Permalink
#7915: Add CPACK to generate debian (#13703)
Browse files Browse the repository at this point in the history
  • Loading branch information
blozano-tt authored Oct 11, 2024
1 parent 3e1c0f9 commit b1ff88e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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)

6 changes: 6 additions & 0 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]")
#set(CPACK_DEBIAN_PACKAGE_DEPENDS "")

include(CPack)

0 comments on commit b1ff88e

Please sign in to comment.