http://www.kdab.com/using-cmake-with-qt-5/ shows some find_package() samples. http://eiskaltdc.googlecode.com/svn-...CMakeLists.txt has a find_package() QtDeclarative variant (not sure whether that one applies here - depends on the Qt version you use). Given a successful result, then do something like: target_link_libraries(my_target ${QT_something_LIBRARIES}) (see the FindQt.cmake file content on which libraries result variable it provides). HTH!
target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES})
target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} QtDeclarative)