blob: db8a843add683572ecea3f689880d3742a73b465 [file] [log] [blame]
Piotr Krysik4c5564b2017-08-30 10:47:07 +02001# 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 Krysik1ad0c962017-08-31 21:58:48 +020020set(grgsm_freedesktop_path ${GR_PKG_DATA_DIR}/gr-gsm/freedesktop)
21
Piotr Krysik4c5564b2017-08-30 10:47:07 +020022install(
23 FILES
Piotr Krysik1ad0c962017-08-31 21:58:48 +020024 grgsm-livemon.desktop
25 DESTINATION ${grgsm_freedesktop_path}
26 COMPONENT "gr-gsm"
Piotr Krysik4c5564b2017-08-30 10:47:07 +020027)
Piotr Krysik1ad0c962017-08-31 21:58:48 +020028
29find_program(HAVE_XDG_UTILS xdg-desktop-menu)
30
31if(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 )
41endif(UNIX AND HAVE_XDG_UTILS)