+IF(INCLUDE_CTEST)
+ include(CTest)
+ENDIF(INCLUDE_CTEST)
+
+
+set(USE_DEBUG_LIB "" CACHE BOOL "Use Debug Libraries" )
+
+#-----------------------------------------------------------------------------
+# If one can invoke this macro then crea has already been found !!
+# However if one whishes to link against crea and crea was built
+# with wx or vtk then we have to find them.
+# This USE_CREA var is made to resolve this dependency.
+IF(USE_CREA)
+ IF(CREA_BUILT_WITH_WX)
+ SET(USE_WXWIDGETS ON)
+ ENDIF(CREA_BUILT_WITH_WX)
+ IF(CREA_BUILT_WITH_VTK)
+ SET(USE_VTK ON)
+ ENDIF(CREA_BUILT_WITH_VTK)
+ENDIF(USE_CREA)
+#-----------------------------------------------------------------------------
+
+
+#-----------------------------------------------------------------------------
+IF(USE_QT4)
+ IF(NOT QT_FOUND)
+
+ INCLUDE(${CREA_CMAKE_DIR}/CREAMacro_FindAndUseQt.cmake)
+ #FIND_PACKAGE(Qt4 REQUIRED)
+
+ 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(QT_FOUND)
+ ENDIF(NOT QT_FOUND)
+ENDIF(USE_QT4)
+#-----------------------------------------------------------------------------
+