[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to add qt script tools support in cmake?
From: Filip Brcic <brcha () gna ! org>
Date: 2011-06-21 10:49:31
Message-ID: 201106211249.37957.brcha () gna ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
Here's the CMakeLists.txt that works:
project(context2d)
find_package(Qt4 COMPONENTS QtCore QtGui QtScript QtScriptTools REQUIRED)
include(${QT_USE_FILE})
SET(context2d_SRCS
main.cpp
context2d.cpp
domimage.cpp
environment.cpp
qcontext2dcanvas.cpp
window.cpp
)
SET(context2d_HEADERS
context2d.h
domimage.h
environment.h
qcontext2dcanvas.h
window.h
)
QT4_WRAP_CPP( context2d_HEADERS_MOC ${context2d_HEADERS} )
SET(context2d_RESOURCES context2d.qrc)
QT4_ADD_RESOURCES(context2d_RESOURCES_RCC ${context2d_RESOURCES})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_EXECUTABLE(context2d ${context2d_SRCS}
${context2d_RESOURCES_RCC}
${context2d_HEADERS_MOC} )
TARGET_LINK_LIBRARIES(context2d ${QT_LIBRARIES})
It seams this example needs both QtScript and QtScriptTools (as is written in
the .pro file).
Best regards,
Filip
--
Filip Brcic <brcha@gna.org>
WWWeb: http://brcha.com
Jabber : brcha@kdetalk.net
GPG 0x2537C379
Fingerprint: 287D 5F24 50AA A36C 977F AC9A F1FD C7EB 2537 C379
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic