[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Convert Qt application to KDE application
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2008-08-01 18:04:04
Message-ID: 200808011204.04772.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 01 August 2008, alpha_one_x86 wrote:
> Aaron J. Seigo wrote:
> > On Friday 01 August 2008, alpha_one_x86 wrote:
> >> Hello, have you a good howto for convert my Qt application to KDE
> >> application,
> >
> > not that i know of, no =/
> >
> >> I have convert my project to cmake 2.6.0. how do for do an
> >> option for switch to kde or Qt version
> >
> > you can look at marble in kdeedu for an exaple of an app that builds with
> > Qt only or KDE .. there are instances of QTONLY in the CMakeLists.txt and
> > the code is similarly instrumented. hope that helps.
>
> How specifies what I want Qt only or KDE version. You have not an links
> or an howto? I search in marble, but it's not realy easy.
look in marble's CMakeLists.txt, as i noted ... they autodetect the existence
of kde's libraries, which is probably what you want.
if you want it done manually, then and you can pass things like -DQT_ONLY on
the command line and in your CMakeLists.txt put something like:
ADD_DEFINITIONS(-DQT_ONLY)
and that will make cmake aware of it on the command line. then you can use the
QT_ONLY define in your CMakeLists.txt and in your code
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
["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