diff --git a/cmake/templates/LeptonicaConfig.cmake.in b/cmake/templates/LeptonicaConfig.cmake.in
index 342c37d..2061041 100644
--- a/cmake/templates/LeptonicaConfig.cmake.in
+++ b/cmake/templates/LeptonicaConfig.cmake.in
@@ -20,7 +20,9 @@
 #
 # ===================================================================================
 
-include(${CMAKE_CURRENT_LIST_DIR}/LeptonicaTargets.cmake)
+#include(${CMAKE_CURRENT_LIST_DIR}/LeptonicaTargets.cmake)
+
+get_filename_component(_leptonica_install_prefix "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
 
 # ======================================================
 #  Version variables:
@@ -36,10 +38,10 @@
 # ======================================================
 
 # Provide the include directories to the caller
-set(Leptonica_INCLUDE_DIRS      "@INCLUDE_DIR@")
+set(Leptonica_INCLUDE_DIRS "${_leptonica_install_prefix}/include/leptonica/")
 
 # ====================================================================
 # Link libraries:
 # ====================================================================
 
-set(Leptonica_LIBRARIES         @leptonica_NAME@)
+set(Leptonica_LIBRARIES "${_leptonica_install_prefix}/lib/leptonica-@VERSION_PLAIN@.lib")
