Hi,<div><br></div><div>I want to use kdeclarative for my qml port of kbreakout, mainly for</div><div>translations. But cmake doesn't find the library.</div><div><br></div><div>I added:</div><div><br></div><div>kbreakout/CMakeLists.txt:</div>
<div><font face="courier new, monospace">find_package(KDeclarative REQUIRED)</font></div><div><br></div><div>kbreakout/src/CMakeLists.txt:</div><div><font face="courier new, monospace">include_directories(${KDECLARATIVE_INCLUDE_DIR})</font></div>
<div><font face="courier new, monospace">target_link_libraries(kbreakout ..... ${KDECLARATIVE_LIBRARIES})</font></div><div><br></div><div>I have kbreakout/src/canvaswidget.cpp that uses KDeclarative as follows:</div><div>
<br></div><div><font face="courier new, monospace">#include <kdeclarative.h></font></div><div><font face="courier new, monospace">KDeclarative kdeclarative;</font></div><div><font face="courier new, monospace">kdeclarative.setDeclarativeEngine(engine());</font></div>
<div><font face="courier new, monospace">kdeclarative.initialize();</font></div><div><font face="courier new, monospace">kdeclarative.setupBindings();</font></div><div><br></div><div>I get this error while compiling: <a href="http://paste.kde.org/497690/">http://paste.kde.org/497690/</a></div>
<div><br></div><div>I checked my $KDEDIR/share/apps/cmake/modules directory and it doesn't</div><div>have any FindKDeclarative.cmake (which I think should be there).</div><div><br></div><div>If any of it matters:</div>
<div>I don't have kdelibs/runtime/workspace compiled from source, using</div><div>kde 4.8.4 distro packages. I've compiled libkdegames and libkmahjongg</div><div>from latest SVN.</div><div><br></div><div>Can someone help me out?</div>
<div><br></div><div>Thanks,</div><div>Viranch</div><div><div><br></div></div>