Move the find_package(Qt4...) bit into the root CMakeLists.txt file since it is used by both the tests and library subdirectories.

This commit is contained in:
Matt Williams
2010-07-02 10:49:47 +00:00
parent 11f47ba86d
commit 765739f450
2 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,6 @@ MACRO(CREATE_TEST headerfile sourcefile executablename)
ENDIF(WIN32)
ENDMACRO(CREATE_TEST)
# Find the QTestLib stuff
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtTest REQUIRED)
INCLUDE(${QT_USE_FILE})
IF(NOT QT_QTTEST_FOUND)
MESSAGE(STATUS "QtTest not found. Either install it or disable tests by setting BUILD_TESTING to OFF")
ENDIF()