Don't fail if Qt isn't installed

If Qt isn't installed, set the reporting variables correctly but don't fail.
This commit is contained in:
Matt Williams
2012-10-25 20:10:37 +01:00
parent 872bdc07f5
commit 2e71019d8f
2 changed files with 14 additions and 12 deletions

View File

@ -39,10 +39,6 @@ MACRO(CREATE_TEST headerfile sourcefile executablename)
SET_PROPERTY(TARGET ${executablename} PROPERTY FOLDER "Tests")
ENDMACRO(CREATE_TEST)
IF(NOT QT_QTTEST_FOUND)
MESSAGE(STATUS "QtTest not found. Either install it or disable tests by setting ENABLE_TESTS to OFF")
ENDIF()
INCLUDE_DIRECTORIES(${PolyVox_SOURCE_DIR}/PolyVoxCore/include ${CMAKE_CURRENT_BINARY_DIR})
REMOVE_DEFINITIONS(-DQT_GUI_LIB) #Make sure the tests don't link to the QtGui