1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 02:14:21 +01:00

Add a deb target

This commit is contained in:
David Sansome 2010-09-04 22:33:31 +00:00
parent be6e887375
commit da25c26239
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@ include(CheckCXXCompilerFlag)
include(FindPkgConfig)
include(cmake/Summary.cmake)
include(cmake/Version.cmake)
include(cmake/Deb.cmake)
include(cmake/Rpm.cmake)
find_package(Qt4 REQUIRED QtCore QtGui QtOpenGL QtSql QtNetwork QtXml)

8
cmake/Deb.cmake Normal file
View File

@ -0,0 +1,8 @@
set(DEB_ARCH amd64 CACHE STRING "Architecture of the deb file")
add_custom_target(deb
COMMAND dpkg-buildpackage -b -uc -us
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../clementine_${CLEMENTINE_VERSION}_${DEB_ARCH}.deb
${CMAKE_BINARY_DIR}/clementine.deb
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)