1#############################################################################
2##    Kwave                - KwaveDEBSupport.cmake
3##                           -------------------
4##    begin                : Fri Apr 18 2014
5##    copyright            : (C) 2014 by Thomas Eschenbacher
6##    email                : Thomas.Eschenbacher@gmx.de
7#############################################################################
8#
9#############################################################################
10#                                                                           #
11# Redistribution and use in source and binary forms, with or without        #
12# modification, are permitted provided that the following conditions        #
13# are met:                                                                  #
14#                                                                           #
15# 1. Redistributions of source code must retain the above copyright         #
16#    notice, this list of conditions and the following disclaimer.          #
17# 2. Redistributions in binary form must reproduce the above copyright      #
18#    notice, this list of conditions and the following disclaimer in the    #
19#    documentation and/or other materials provided with the distribution.   #
20#                                                                           #
21# For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file.        #
22#                                                                           #
23#############################################################################
24
25#############################################################################
26### some needed programs                                                  ###
27
28FIND_PROGRAM(CHECKINSTALL_EXECUTABLE NAMES checkinstall)
29
30#############################################################################
31### set release number                                                    ###
32
33SET(DEB_RELEASE "1")
34
35#############################################################################
36### binary DEB (for personal use only)                                    ###
37
38ADD_CUSTOM_TARGET(deb
39    COMMAND ${CHECKINSTALL_EXECUTABLE}
40        -y -D
41        --pkgname=${PROJECT_NAME}
42        --pkgversion=${KWAVE_VERSION}
43        --pkgrelease=${DEB_RELEASE}
44        --install=no --fstrans
45    COMMAND echo    ""
46    COMMAND echo -e "    NOTE: This .deb file is for personal use and testing only"
47    COMMAND echo -e "          not for distribution!"
48    COMMAND echo -e "          It does not have the quality of the .deb packages you"
49    COMMAND echo -e "          can get from your official package maintainer!"
50    COMMAND echo    ""
51)
52
53#############################################################################
54#############################################################################
55