1 ## ==================================================
2 ## == Find Qt4 and check if it was well configured ==
3 ## ==================================================
5 OPTION(BUILD_QT4_COMPONENTS "Build Qt4-based code" OFF)
6 IF(BUILD_QT4_COMPONENTS)
7 FIND_PACKAGE(Qt4 REQUIRED)
8 INCLUDE(${QT_USE_FILE})
13 FOREACH(_m ${_modules})
15 MESSAGE(FATAL_ERROR "${_m} module is required but not available.")
17 ENDIF(NOT ${_m}_LOADED)
19 ENDIF(BUILD_QT4_COMPONENTS)