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:
parent
be6e887375
commit
da25c26239
@ -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
8
cmake/Deb.cmake
Normal 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}
|
||||
)
|
Loading…
Reference in New Issue
Block a user