2010-09-05 00:33:31 +02:00
|
|
|
set(DEB_ARCH amd64 CACHE STRING "Architecture of the deb file")
|
2011-01-08 18:08:33 +01:00
|
|
|
set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog")
|
2010-09-05 00:33:31 +02:00
|
|
|
|
|
|
|
add_custom_target(deb
|
2010-11-21 19:09:28 +01:00
|
|
|
COMMAND dpkg-buildpackage -b -d -uc -us
|
2011-01-08 17:47:29 +01:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../clementine_${CLEMENTINE_VERSION_DEB}~${DEB_DIST}_${DEB_ARCH}.deb
|
|
|
|
${CMAKE_BINARY_DIR}/clementine_${CLEMENTINE_VERSION_DEB}~${DEB_DIST}_${DEB_ARCH}.deb
|
2010-09-05 00:33:31 +02:00
|
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
|
|
)
|