/usr/lib/cmake/LibKVkontakte/LibKVkontakteConfig.cmake is in libkvkontakte-dev 1.0~digikam3.5.0-0ubuntu10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | get_filename_component(myDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am
get_filename_component(rootDir ${myDir}/../../../../ ABSOLUTE) # get the chosen install prefix
# set the version of myself
set(LIBKVKONTAKTE_VERSION_MAJOR 1)
set(LIBKVKONTAKTE_VERSION_MINOR 0)
set(LIBKVKONTAKTE_VERSION_PATCH 0)
set(LIBKVKONTAKTE_VERSION ${LIBKVKONTAKTE_VERSION_MAJOR}.${LIBKVKONTAKTE_VERSION_MINOR}.${LIBKVKONTAKTE_VERSION_PATCH} )
# what is my include directory
set(LIBKVKONTAKTE_INCLUDES "${rootDir}/include")
# import the exported targets
include(${myDir}/LibKVkontakteTargets.cmake)
# set the expected library variable
set(LIBKVKONTAKTE_LIBRARIES kvkontakte )
# system has libkvkontakte
set(LIBKVKONTAKTE_FOUND true)
|