lists.zerezo.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Res: [OT] Error in cmake use



i'm pretty sure that you can fix that by adding this to the beginning of the cmakelists
find_package(Qt4 REQUIRED)

include_directories(  ${QT_INCLUDES} )

Daniel.

----- Mensagem original ----
De: Wagner Sales <wsales@xxxxxxxxx>
Para: kde-devel@xxxxxxx
Enviadas: Sexta-feira, 4 de Julho de 2008 18:17:17
Assunto: [OT] Error in cmake use

Hi all,

Sorry, I know that's aren't the correct place to post this question. But I think here are the most experts users in this field :)
I'm using CMake to configure my project with Qt4. The problem are if I don't use Qt XML module in project ( QDomElement, etc ) all works fine.
But, if I use, the following problem occurs:
.
.
.
/data/head/rc1/App/src/Entity.h:11:23: error: QDomElement: No such file or directory
.
.
.
Appears that's CMake ( 2.6 ) are not found the Qt XML includes.
My portion of CMakeLists.txt:

SET(rccs forms.qrc icons.qrc wizard.qrc)
QT4_ADD_RESOURCES(rccsrcs ${rccs})
QT4_WRAP_UI(uiheaders ${uis})
QT4_WRAP_CPP(mocsrcs ${qtheaders})
ADD_DEFINITIONS(-DQT_GUI_LIBS -DQT_CORE_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_SHARED)
SET_SOURCE_FILES_PROPERTIES(${cpps} PROPERTIES
                            OBJECT_DEPENDS "${uiheaders}")
ADD_EXECUTABLE(app ${cpps} ${mocsrcs} ${rccsrcs})



TARGET_LINK_LIBRARIES( app
  ${QT_LIBRARIES}
)

Any help?

I'm searching to CMakeLists.txt in kde websvn to find some example, but yet without success.

Thks in advance,

Wagner Sales





Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<