aboutsummaryrefslogtreecommitdiffhomepage
path: root/demos/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'demos/CMakeLists.txt')
-rw-r--r--demos/CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt
index 4e8f5164f..1ec49d13e 100644
--- a/demos/CMakeLists.txt
+++ b/demos/CMakeLists.txt
@@ -1,3 +1,9 @@
+add_custom_target(demos)
-add_subdirectory(mandelbrot)
-add_subdirectory(opengl)
+find_package(Qt4)
+if(QT4_FOUND)
+ add_subdirectory(mandelbrot)
+ add_subdirectory(opengl)
+else(QT4_FOUND)
+ message(STATUS "Qt4 not found, so disabling the mandelbrot and opengl demos")
+endif(QT4_FOUND)