Hi Dmitry,

On уторак, 21. јун 2011. 8.35.41 dmitry chernov wrote:
> Do anybody have proper CMakeLists.txt to build qt's example Context2D? I
> had to add -DQT_NO_SCRIPTTOOLS. When I build this example with .pro file
> it builds ok. So I want to know how to add qt script tools support in
> cmake. Now I use following CMakeLists.txt :

I saw you didn't specify the modules in the find_package directive:

> FIND_PACKAGE(Qt4 REQUIRED)

Try using it like this:

find_package(Qt4 COMPONENTS QtCore QtGui QtScript REQUIRED)

Then you won't have to set qt_use_script to true.

Also, if I were you, I'd add include(${QT_USE_FILE}) right after 
find_package(Qt4), as that's how it was intended to be used, IMHO.

Please try that and see if you still need to set -DQT_NO_SCRIPTTOOLS.

Best regards,
Filip

-- 
Filip Brcic <[email protected]>
WWWeb: http://brcha.com
Jabber  : [email protected] 
GPG 0x2537C379
Fingerprint: 287D 5F24 50AA A36C 977F AC9A F1FD C7EB 2537 C379

Attachment: signature.asc
Description: This is a digitally signed message part.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to