Fixed annoying CMake - Qt warning.

This commit is contained in:
Hauke Heibel
2010-07-03 11:52:46 +02:00
parent 5a52f2833f
commit d6791e8f3d
2 changed files with 13 additions and 10 deletions

View File

@@ -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()