Rex Dieter 78fbbfa
diff -up libksane-4.10.5/KSaneConfig.cmake.in.ksaneconfig libksane-4.10.5/KSaneConfig.cmake.in
Rex Dieter 78fbbfa
--- libksane-4.10.5/KSaneConfig.cmake.in.ksaneconfig	2013-06-28 12:36:54.799834900 -0500
Rex Dieter 78fbbfa
+++ libksane-4.10.5/KSaneConfig.cmake.in	2013-07-13 09:20:21.827105668 -0500
Rex Dieter 78fbbfa
@@ -1,10 +1,36 @@
Rex Dieter 78fbbfa
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
Rex Dieter 78fbbfa
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
Rex Dieter 78fbbfa
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
Rex Dieter 78fbbfa
-GET_FILENAME_COMPONENT(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
Rex Dieter 78fbbfa
-
Rex Dieter 78fbbfa
-find_library(KSANE_LIBRARY NAMES ksane HINTS ${_IMPORT_PREFIX}/lib NO_DEFAULT_PATH)
Rex Dieter 78fbbfa
-find_path(KSANE_INCLUDE_DIR NAMES libksane/ksane.h HINTS ${_IMPORT_PREFIX}/include NO_DEFAULT_PATH)
Rex Dieter 78fbbfa
-SET(KSANE_LIBRARY "${KSANE_LIBRARY}" CACHE FILEPATH "KSane image scanning library")
Rex Dieter 78fbbfa
-SET(KSANE_INCLUDE_DIR "${KSANE_INCLUDE_DIR}" CACHE PATH "Include path for KSane library")
Rex Dieter 78fbbfa
+# Config file for libksane. Do not modify this file. Any change will be overwritten by CMake.
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# This file will define the following variables:
Rex Dieter 78fbbfa
+#
Rex Dieter 78fbbfa
+# KSANE_LIB_DIR : The libksane library directory
Rex Dieter 78fbbfa
+# KSANE_INCLUDE_DIR : The libksane include directory
Rex Dieter 78fbbfa
+# KSANE_VERSION : The libksane version
Rex Dieter 78fbbfa
+# KSANE_LIBRARY : The libkane library
Rex Dieter 78fbbfa
+# KSANE_FOUND : 
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+get_filename_component(_currentDir ${CMAKE_CURRENT_LIST_FILE} PATH) # The current directory
Rex Dieter 78fbbfa
+get_filename_component(rootDir ${_currentDir}/@relInstallDir@ ABSOLUTE) # The install prefix
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# The nepomuk-core version
Rex Dieter 78fbbfa
+set(KSANE_VERSION_MAJOR @KSANE_LIB_MAJOR_VERSION@)
Rex Dieter 985b6cc
+set(KSANE_VERSION_MINOR @KSANE_LIB_MINOR_VERSION@)
Rex Dieter 78fbbfa
+set(KSANE_VERSION_PATCH @KSANE_LIB_PATCH_VERSION@)
Rex Dieter 78fbbfa
+set(KSANE_VERSION ${KSANE_VERSION_MAJOR}.${KSANE_VERSION_MINOR}.${KSANE_VERSION_PATCH})
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# set the directories
Rex Dieter 78fbbfa
+if(NOT KSANE_INSTALL_DIR)
Rex Dieter 78fbbfa
+   set(KSANE_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
Rex Dieter 78fbbfa
+endif()
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# Library directory
Rex Dieter 78fbbfa
+set(KSANE_LIB_DIR "@LIB_INSTALL_DIR@")
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# Include directory
Rex Dieter 78fbbfa
+set(KSANE_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@")
Rex Dieter 78fbbfa
+set(KSANE_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@")
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
+# Set the libraries names
Rex Dieter 78fbbfa
+set(KSANE_LIBRARY ksane)
Rex Dieter 78fbbfa
+set(KSANE_LIBRARIES ksane)
Rex Dieter 78fbbfa
+
Rex Dieter 78fbbfa
 SET(KSANE_FOUND TRUE)