From kde-devel Fri Jul 27 08:21:03 2012 From: Viranch Mehta Date: Fri, 27 Jul 2012 08:21:03 +0000 To: kde-devel Subject: [CMake question] how to use kdeclarative library? Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=134337683321329 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============8302145585021146999==" --===============8302145585021146999== Content-Type: multipart/alternative; boundary=14dae9340379ad831904c5cb39b4 --14dae9340379ad831904c5cb39b4 Content-Type: text/plain; charset=ISO-8859-1 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( ${KDECLARATIVE_INCLUDE_DIR} ) 3. target_link_libraries(kbreakout-qml ${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 --14dae9340379ad831904c5cb39b4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wha= t I need to put in my CMakeLists.txt.

For now I= 9;ve blindly added the three lines:

1. find_package(KDeclarative REQUIRED)
2.=A0i= nclude_directories( <bunch of includes> ${KDECLARATIVE_INCLUDE_DIR} )=
3.=A0target_link_libraries(kbreakout-qml <bunch of libraries&= gt; ${KDECLARATIVE_LIBRARIES})

I'm also unsure as to whether all of these are requ= ired.

Also, with above in my CMakeLists, the game = cannot be built on some distros.
Do I need=A0to add the cmake/mod= ules/FindKDeclarative.cmake in the source
tree?

Thanks,
Viranch
--14dae9340379ad831904c5cb39b4-- --===============8302145585021146999== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============8302145585021146999==--