Allow searching for libkface using find_package, but without the FindKface.cmake module

Review Request #119504 - Created July 27, 2014 and updated - Latest diff uploaded

Information
Johannes Zarl-Zierl
libkface
master
Reviewers
digikam

Implement KfaceConfig.cmake with imported targets.

This patch simplifies find_package usage for a project using libkface, and allows regular cmake package versioning to be used:

find_package(Kface 3.3.0 CONFIG)
if(Kface_FOUND)
  target_link_libraries(my_program ${KFACE_NAMESPACE}kface )
endif()

Note: in its current form, this patch uses CMake features only available in CMake >= 2.8.11.


  
Loading...