1set(DEB_ARCH amd64 CACHE STRING "Architecture of the deb file") 2set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog") 3 4add_custom_target(deb 5 COMMAND dpkg-buildpackage -b -d -uc -us 6 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../clementine_${CLEMENTINE_VERSION_DEB}~${DEB_DIST}_${DEB_ARCH}.deb 7 ${CMAKE_BINARY_DIR}/clementine_${CLEMENTINE_VERSION_DEB}~${DEB_DIST}_${DEB_ARCH}.deb 8 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} 9) 10