1 # Try to find QtDeclarative
2 # TODO: Remove this hack when cmake support QtDeclarative module
3 if (NOT QT_QTDECLARATIVE_FOUND AND ${QTVERSION} VERSION_GREATER 4.6.0)
4 find_path(QT_QTDECLARATIVE_INCLUDE_DIR QtDeclarative
5 PATHS ${QT_HEADERS_DIR}/QtDeclarative
6 ${QT_LIBRARY_DIR}/QtDeclarative.framework/Headers
8 find_library(QT_QTDECLARATIVE_LIBRARY QtDeclarative PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
9 if (QT_QTDECLARATIVE_INCLUDE_DIR AND QT_QTDECLARATIVE_LIBRARY)
10 set(QT_QTDECLARATIVE_FOUND ON)
12 #Replace this on documentation
13 set(if_QtDeclarative "<!--")
14 set(end_QtDeclarative "-->")