Piotr Krysik | 4c5564b | 2017-08-30 10:47:07 +0200 | [diff] [blame] | 1 | # Copyright 2011 Free Software Foundation, Inc. |
| 2 | # |
| 3 | # This file is part of GNU Radio |
| 4 | # |
| 5 | # GNU Radio is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 3, or (at your option) |
| 8 | # any later version. |
| 9 | # |
| 10 | # GNU Radio is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with GNU Radio; see the file COPYING. If not, write to |
| 17 | # the Free Software Foundation, Inc., 51 Franklin Street, |
| 18 | # Boston, MA 02110-1301, USA. |
| 19 | |
Piotr Krysik | 1ad0c96 | 2017-08-31 21:58:48 +0200 | [diff] [blame] | 20 | set(grgsm_freedesktop_path ${GR_PKG_DATA_DIR}/gr-gsm/freedesktop) |
| 21 | |
Piotr Krysik | 4c5564b | 2017-08-30 10:47:07 +0200 | [diff] [blame] | 22 | install( |
| 23 | FILES |
Piotr Krysik | 1ad0c96 | 2017-08-31 21:58:48 +0200 | [diff] [blame] | 24 | grgsm-livemon.desktop |
| 25 | DESTINATION ${grgsm_freedesktop_path} |
| 26 | COMPONENT "gr-gsm" |
Piotr Krysik | 4c5564b | 2017-08-30 10:47:07 +0200 | [diff] [blame] | 27 | ) |
Piotr Krysik | 1ad0c96 | 2017-08-31 21:58:48 +0200 | [diff] [blame] | 28 | |
| 29 | find_program(HAVE_XDG_UTILS xdg-desktop-menu) |
| 30 | |
| 31 | if(UNIX AND HAVE_XDG_UTILS) |
| 32 | set(SRCDIR ${CMAKE_INSTALL_PREFIX}/${grgsm_freedesktop_path}) |
| 33 | configure_file( |
| 34 | ${CMAKE_CURRENT_SOURCE_DIR}/grgsm_setup_freedesktop.in |
| 35 | ${CMAKE_CURRENT_BINARY_DIR}/grgsm_setup_freedesktop |
| 36 | @ONLY) |
| 37 | install( |
| 38 | PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/grgsm_setup_freedesktop |
| 39 | DESTINATION ${GR_PKG_LIBEXEC_DIR} COMPONENT "gr-gsm" |
| 40 | ) |
| 41 | endif(UNIX AND HAVE_XDG_UTILS) |