From 48c692f573cb666fb35355433f79806f3d2015fe Mon Sep 17 00:00:00 2001 From: Paul Beuchat <beuchatp@control.ee.ethz.ch> Date: Tue, 4 Jun 2019 12:19:50 +0200 Subject: [PATCH] Added check for Qt to the CMakeList --- dfall_ws/src/dfall_pkg/CMakeLists.txt | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dfall_ws/src/dfall_pkg/CMakeLists.txt b/dfall_ws/src/dfall_pkg/CMakeLists.txt index 142e1844..256b9f0c 100755 --- a/dfall_ws/src/dfall_pkg/CMakeLists.txt +++ b/dfall_ws/src/dfall_pkg/CMakeLists.txt @@ -17,9 +17,19 @@ find_package(catkin REQUIRED COMPONENTS roslib ) + + +# CHECK IF THE EIGEN PACKAGE IS AVAILABLE find_package (Eigen3 3.3 NO_MODULE) + +# CHECK IF THE QT PACKAGE IS AVAILABLE +find_package (Qt5Core CONFIG) +find_package (Qt5Svg CONFIG) + + + # VICON DATASTREAM SDK PACKAGE # Ensure that the cache variable where the result would be stored is clear message(STATUS "NOTE: Prior to being unset: VICON_LIBRARY = " ${VICON_LIBRARY}) @@ -38,6 +48,35 @@ else() endif() + +# LET THE USER KNOW IF THE EIGEN PACKAGE WAS FOUND OR NOT +if(Eigen3_FOUND) + message(STATUS "NOTE: the Eigen3 package was found") +else() + message(STATUS "NOTE: the Eigen3 package was NOT found") +endif() + + + +# LET THE USER KNOW IF THE QT PACKAGES WERE FOUND OR NOT +if(Qt5Core_FOUND) + message(STATUS "NOTE: the Qt Core package was found") +else() + message(STATUS "NOTE: the Qt Core package was NOT found") +endif() +if(Qt5Svg_FOUND) + message(STATUS "NOTE: the Qt Svg package was found") +else() + message(STATUS "NOTE: the Qt Svg package was NOT found") +endif() +if(Qt5Core_FOUND AND Qt5Svg_FOUND) + message(STATUS "NOTE: hence compiling Qt GUIs") +else() + message(STATUS "NOTE: hence NOT compiling Qt GUIs") +endif() + + + # GUI -- Add precompiler definitions to include ROS things in GUI compilation add_definitions(-DCATKIN_MAKE) -- GitLab