Cleaner way of requesting Qt modules

This commit is contained in:
Matt Williams
2010-03-05 15:15:42 +00:00
parent 9d03360436
commit 6f70396c9a
2 changed files with 2 additions and 6 deletions

View File

@ -16,9 +16,7 @@ MACRO(CREATE_TEST headerfile sourcefile executablename)
ENDMACRO(CREATE_TEST)
# Find the QTestLib stuff
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTTEST TRUE)
SET(QT_DONT_USE_QTGUI TRUE)
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtTest REQUIRED)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${PolyVox_SOURCE_DIR}/PolyVoxCore/include ${CMAKE_CURRENT_BINARY_DIR})