From: guigues Date: Fri, 3 Apr 2009 10:19:50 +0000 (+0000) Subject: Patch for finding QT4 X-Git-Tag: EED.02Oct2009~33 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3a4da1258c8cf72f21c9457e01eeb4ab5c968016;p=crea.git Patch for finding QT4 --- diff --git a/cmake/CREAMacro_FindAndUseLibraries.cmake b/cmake/CREAMacro_FindAndUseLibraries.cmake index 4bc86ac..99cea3f 100644 --- a/cmake/CREAMacro_FindAndUseLibraries.cmake +++ b/cmake/CREAMacro_FindAndUseLibraries.cmake @@ -20,15 +20,21 @@ ENDIF(USE_CREA) #----------------------------------------------------------------------------- IF(USE_QT4) - IF(NOT Qt4_FOUND) + IF(NOT QT_FOUND) FIND_PACKAGE(Qt4 REQUIRED) - INCLUDE(${QT_USE_FILE}) - CREA_DEFINE( USE_QT ) + IF(QT_FOUND) + MESSAGE ( STATUS "=======================================") + MESSAGE ( STATUS "Looking for QT4... found") + MESSAGE ( STATUS "* Inc Dir = ${QT_INCLUDE_DIR}") + MESSAGE ( STATUS "* Version = ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}") + INCLUDE(${QT_USE_FILE}) + CREA_DEFINE( USE_QT ) # SET(QT_LIBRARIES # ${QT_LIBRARIES} # ) # MARK_AS_ADVANCED(Qt4_DIR) - ENDIF(NOT Qt4_FOUND) + ENDIF(QT_FOUND) + ENDIF(NOT QT_FOUND) ENDIF(USE_QT4) #-----------------------------------------------------------------------------