From f9a32a464156dd61b444f0e70c8342642363e8ea Mon Sep 17 00:00:00 2001 From: salinasd Date: Sat, 14 Nov 2015 15:41:43 +0000 Subject: gudhui: Specific error message for missing depencies git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/qt5@919 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 63b574b1a36d6f9c929aac6e64d31ab60ee1c4b1 --- src/GudhUI/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/GudhUI') diff --git a/src/GudhUI/CMakeLists.txt b/src/GudhUI/CMakeLists.txt index a398d74c..c852c43f 100644 --- a/src/GudhUI/CMakeLists.txt +++ b/src/GudhUI/CMakeLists.txt @@ -6,6 +6,25 @@ find_package(Qt5 COMPONENTS Widgets Xml OpenGL) find_package(QGLViewer) find_package(OpenGL) + +if (NOT CGAL_FOUND) + message(ERROR " GudhUI requires CGAL and will not be compiled.") +endif() + +if (NOT Qt5_FOUND) + message(ERROR " GudhUI requires Qt5 and will not be compiled.") +endif() + +if (NOT OPENGL_FOUND) + message(ERROR " GudhUI requires OpenGL and will not be compiled.") +endif() + +if (NOT QGLVIEWER_FOUND) + message(ERROR " GudhUI requires QGLViewer and will not be compiled.") +endif() + + + if ( CGAL_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND ) set(CMAKE_AUTOMOC ON) -- cgit v1.2.3