[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/20: grc: have cmake find a xterm executa
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/20: grc: have cmake find a xterm executable on UNIX |
Date: |
Fri, 28 Aug 2015 19:19:51 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 4d7acb977f9afb54dc15dc7526213e2032a2ea63
Author: Sebastian Koslowski <address@hidden>
Date: Wed Aug 12 12:48:47 2015 +0200
grc: have cmake find a xterm executable on UNIX
---
grc/CMakeLists.txt | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
index 3714401..859b9e9 100644
--- a/grc/CMakeLists.txt
+++ b/grc/CMakeLists.txt
@@ -72,13 +72,16 @@ if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
set(blocksdir ${blocksdir}:/usr/local/${GRC_BLOCKS_DIR})
endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
-if (APPLE)
- set(GRC_XTERM_EXE "xterm")
-elseif(CYGWIN)
- set(GRC_XTERM_EXE "xterm")
-elseif(UNIX)
- set(GRC_XTERM_EXE "x-terminal-emulator")
-else()
+if(UNIX)
+ find_program(GRC_XTERM_EXE
+ NAMES xterminal-emulator gnome-terminal konsole xterm
+ HINTS ENV PATH
+ DOC "graphical terminal emulator used in GRC's no-gui-mode"
+ )
+ if(NOT GRC_XTERM_EXE)
+ set(GRC_XTERM_EXE "")
+ endif()
+else() # APPLE CYGWIN
set(GRC_XTERM_EXE "xterm")
endif()
- [Commit-gnuradio] [gnuradio] 07/20: grc: move gui prefs file to ~/.gnuradio/grc.conf, (continued)
- [Commit-gnuradio] [gnuradio] 07/20: grc: move gui prefs file to ~/.gnuradio/grc.conf, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 20/20: Merge branch 'maint', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 19/20: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/20: grc: clean-up ActionHandler.py imports, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 14/20: Merge remote-tracking branch 'estatz/qtgui_trigger_callbacks', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 13/20: grc: super-secret, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/20: grc: show cmdline when xterm is used, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 12/20: qtgui: Modified the qproperties to scale the colorbar title from the .qss file, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 18/20: Merge remote-tracking branch 'sdh11/complexity', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 15/20: Merge remote-tracking branch 'tom/docs/sphinx_update', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/20: grc: have cmake find a xterm executable on UNIX,
git <=
- [Commit-gnuradio] [gnuradio] 08/20: whitespace fixes and some minor adjustments for building the Python manual., git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 09/20: docs: Reviving Python manual., git, 2015/08/28