[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    How to add qt script tools support in cmake?
From:       dmitry chernov <diman4ik.chernov () gmail ! com>
Date:       2011-06-21 6:35:41
Message-ID: BANLkTinbcm+iSzu7_fe3wTOytEpegVtLhA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 :

project(context2d)

FIND_PACKAGE(Qt4 REQUIRED)

SET( QT_USE_QTSCRIPT TRUE )

add_definitions(-DQT_NO_SCRIPTTOOLS)

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})

INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

ADD_EXECUTABLE(context2d ${context2d_SRCS}
                         ${context2d_RESOURCES_RCC}
                         ${context2d_HEADERS_MOC} )

TARGET_LINK_LIBRARIES(context2d ${QT_LIBRARIES})

[Attachment #5 (text/html)]

Do anybody have proper CMakeLists.txt to build qt&#39;s example Context2D<span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: \
medium;"><span class="Apple-style-span" style="font-family: \
Arial,Geneva,Helvetica,sans-serif;"></span></span>? 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 :<br> \
<br>project(context2d)<br> <br>FIND_PACKAGE(Qt4 REQUIRED)<br><br>SET( QT_USE_QTSCRIPT \
TRUE )<br><br>add_definitions(-DQT_NO_SCRIPTTOOLS)<br> <br>SET(context2d_SRCS <br>    \
main.cpp<br>    context2d.cpp<br>    domimage.cpp<br>  environment.cpp<br>    \
qcontext2dcanvas.cpp<br>    window.cpp<br>)<br><br>SET(context2d_HEADERS <br>    \
context2d.h<br>    domimage.h<br>    environment.h<br>    qcontext2dcanvas.h<br>    \
window.h<br>)<br><br>QT4_WRAP_CPP( context2d_HEADERS_MOC ${context2d_HEADERS} )<br> \
<br>SET(context2d_RESOURCES \
context2d.qrc)<br><br>QT4_ADD_RESOURCES(context2d_RESOURCES_RCC \
${context2d_RESOURCES})<br><br>INCLUDE(${QT_USE_FILE})<br>ADD_DEFINITIONS(${QT_DEFINITIONS})<br><br>ADD_EXECUTABLE(context2d \
${context2d_SRCS}<br>  ${context2d_RESOURCES_RCC}<br>                         \
${context2d_HEADERS_MOC} )<br><br>TARGET_LINK_LIBRARIES(context2d \
${QT_LIBRARIES})<br><br>



>> 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