diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index ce25125ec..b0d2eddbb 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -2,10 +2,12 @@ project(EigenDemos) add_custom_target(demos) -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) +if(NOT EIGEN_TEST_NOQT) + 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) +endif() |