![]() Registered Member ![]()
|
Hi everyone,
until now I only used qmake, where it is easy to tell that my application needs to link to QtNetwork.so, by just adding the line QT+=network. Now I want to play with plasmoids, starting with the tutorial provided as a sample project with Kdevelop 4. This is configured via cmake. It works perfectly, until I start using QHttp. Then I get undefined reference errors when linking. It's obvious that I need to tell cmake that i need QTNetwork. But I have no idea how to this with Cmake. This is the (auto-generated) cmakelists.txt
Via google I found set(QT_USE_QTNETWORK TRUE) but I don't know where to insert it and after several tries still get undefined references. So how to setup this correctly? Regards, Phil |
![]() KDE Developer ![]()
|
Add ${QT_QTNETWORK_LIBRARY} to your target_link_libraries().
Pino Toscano
|
![]() Registered Member ![]()
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]