Add cmake config for kdeclarative library.

Review Request #104140 - Created March 2, 2012 and submitted

Information
Lamarque Souza
kdelibs
KDE/4.8
Reviewers
kdelibs
Currently kdeclarative library does not install the KDeclarativeConfig.cmake and KDeclarativeConfigVersion.cmake to ${LIB_INSTALL_DIR}/cmake/KDeclarative and so other KDE programs cannot find the library using cmake's find_package macro.

kde-workspace, kde-runtime and plasma-mobile currently hardcode the "kdeclarative" library name in their CMakeLists.txt, which is not ideal. Once this patch is submitted we need to fix their CMakeLists.txt to use "find_package(KDeclarative REQUIRED)".
I can now compile kde-workspace/ksmserver without using the custom made FindKDeclarative.cmake.

Issues

  • 2
  • 0
  • 0
  • 2
Description From Last Updated
You may want to use something like KDeclarative_SOURCE_DIR, which is defined if there is a project call like project(KDeclarative) in ... Alexander Neundorf Alexander Neundorf
I didn't check, but how is INCLUDE_INSTALL_DIR set ? Is it done by via find_package(KDE4) ? In this case, INCLUDE_INSTALL_DIR ... Alexander Neundorf Alexander Neundorf
Lamarque Souza
Laszlo Papp
Alexander Neundorf
Lamarque Souza
Aleix Pol Gonzalez
Laszlo Papp
Commit Hook
Lamarque Souza
Review request changed

Status: Closed (submitted)

Loading...