add some comments
[makneto-zunavac1.git] / CMakeMod / FindQtDeclarative.cmake
blob83a6ad17bc796bdf14138ed5d6a685bafcce94a8
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
7             NO_DEFAULT_PATH)
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)
11     else()
12         #Replace this on documentation
13         set(if_QtDeclarative "<!--")
14         set(end_QtDeclarative "-->")
15     endif()
16 endif ()