![]() Registered Member ![]()
|
I used following cmake file:
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}) It builds but I had to add -DQT_NO_SCRIPTTOOLS. Which means no Run in Debugger. How to enable Qt scripttools in cmake?
People are the power
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]