Skip to content
Snippets Groups Projects
Commit 48c692f5 authored by Paul Beuchat's avatar Paul Beuchat
Browse files

Added check for Qt to the CMakeList

parent b82b5f11
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment