~ubuntu-branches/ubuntu/quantal/kactivities/quantal

« back to all changes in this revision

Viewing changes to lib/KActivitiesConfig.cmake.in

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-12-23 23:39:41 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20111223233941-zxczsd6dixwmaco2
Tags: upstream-4.7.95
Import upstream version 4.7.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
2
 
GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}/../.." ABSOLUTE)
3
 
 
4
 
find_library(KACTIVITIES_LIBRARY NAMES kactivities PATHS ${_IMPORT_PREFIX} NO_DEFAULT_PATH)
5
 
SET(KACTIVITIES_LIBRARY "${KACTIVITIES_LIBRARY}" CACHE FILEPATH "KActivities library")
6
 
SET(KACTIVITIES_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@" CACHE PATH "Include path for KActivities library")
7
 
SET(KACTIVITIES_FOUND TRUE)
 
1
get_filename_component(myDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am
 
2
get_filename_component(rootDir ${myDir}/@relInstallDir@ ABSOLUTE) # get the chosen install prefix
 
3
 
 
4
# set the version of myself
 
5
set(KACTIVITIES_VERSION_MAJOR @KACTIVITIES_LIB_MAJOR_VERSION@)
 
6
set(KACTIVITIES_VERSION_MINOR @KACTIVITIES_LIB_MINOR_VERSION@)
 
7
set(KACTIVITIES_VERSION_PATCH @KACTIVITIES_LIB_PATCH_VERSION@)
 
8
set(KACTIVITIES_VERSION @KACTIVITIES_LIB_MAJOR_VERSION@.@KACTIVITIES_LIB_MINOR_VERSION@.@KACTIVITIES_LIB_PATCH_VERSION@)
 
9
set(KACTIVITIES_VERSION_STRING "@KACTIVITIES_LIB_MAJOR_VERSION@.@KACTIVITIES_LIB_MINOR_VERSION@.@KACTIVITIES_LIB_PATCH_VERSION@")
 
10
 
 
11
# what is my include directory
 
12
# we have _DIRS for compat with existing usage
 
13
SET(KACTIVITIES_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@" "@INCLUDE_INSTALL_DIR@/KDE" CACHE PATH "Include path for the KActivities library")
 
14
set(KACTIVITIES_INCLUDES "${rootDir}/@INCLUDE_INSTALL_DIR@" "@INCLUDE_INSTALL_DIR@/KDE")
 
15
 
 
16
# import the exported targets
 
17
include(${myDir}/KActivitiesLibraryTargets.cmake)
 
18
 
 
19
# set the expected library variable
 
20
# XXX: only KACTIVITIES_LIBRARIES should be used according to CMake's conventions,
 
21
#      KACTIVITIES_LIBRARY is kept for compatibility with all the places using it.
 
22
set(KACTIVITIES_LIBRARY kactivities)
 
23
set(KACTIVITIES_LIBRARIES kactivities)