From e3c7665a7cca1d0ca6cee2705ca38381172414ee Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 18 Jul 2012 18:40:36 -0700 Subject: [PATCH] Qwt check for GUI app. --- CMakeLists.txt | 2 +- res/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b00f759..7f6c77b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ # Project setup ######################################################################## cmake_minimum_required(VERSION 2.6) -project(gr-gr-air-modes CXX) +project(gr-air-modes CXX) enable_testing() #select the release build type by default to get optimization flags diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index c0d7672..20213f1 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -31,6 +31,12 @@ if(NOT PYQT4_FOUND) return() endif() +find_package(Qwt) +if(NOT QWT_FOUND) + message(STATUS "Qwt not found, not installing GUI application") + return() +endif() + set(PYUIC4_COMPILE pyuic4) set(RX_UI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/modes_rx.ui)