[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [CMake question] how to use kdeclarative library?
From: Viranch Mehta <viranch.mehta () gmail ! com>
Date: 2012-07-27 8:21:03
Message-ID: CADk4Opa5JpT=JU6XDk7WoK6DnRkSw0aikdUtWxjjAejV9Oxbyw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hey folks,
I'm working on QML port of a KDE game and I need to use KDeclarative
for some stuff, so I want to know what I need to put in my CMakeLists.txt.
For now I've blindly added the three lines:
1. find_package(KDeclarative REQUIRED)
2. include_directories( <bunch of includes> ${KDECLARATIVE_INCLUDE_DIR} )
3. target_link_libraries(kbreakout-qml <bunch of libraries>
${KDECLARATIVE_LIBRARIES})
I'm also unsure as to whether all of these are required.
Also, with above in my CMakeLists, the game cannot be built on some distros.
Do I need to add the cmake/modules/FindKDeclarative.cmake in the source
tree?
Thanks,
Viranch
[Attachment #5 (text/html)]
Hey folks,<div><br></div><div>I'm working on QML port of a KDE game and=
I need to use KDeclarative</div><div>for some stuff, so I want to know wha=
t I need to put in my CMakeLists.txt.</div><div><br></div><div>For now I=
9;ve blindly added the three lines:</div>
<div><br></div><div>1. find_package(KDeclarative REQUIRED)</div><div>2.=A0i=
nclude_directories( <bunch of includes> ${KDECLARATIVE_INCLUDE_DIR} )=
</div><div>3.=A0target_link_libraries(kbreakout-qml <bunch of libraries&=
gt; ${KDECLARATIVE_LIBRARIES})</div>
<div><br></div><div>I'm also unsure as to whether all of these are requ=
ired.</div><div><br></div><div>Also, with above in my CMakeLists, the game =
cannot be built on some distros.</div><div>Do I need=A0to add the cmake/mod=
ules/FindKDeclarative.cmake in the source</div>
<div>tree?</div><div><br></div><div>Thanks,</div><div>Viranch</div><div><br=
></div>
>> 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