Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > d8d7b82676c75de12ad89208c7cc4cfe > files > 3

opencv-2.0.0-9.fc13.src.rpm

diff -up OpenCV-2.0.0/CMakeLists.txt.opencvconfig OpenCV-2.0.0/CMakeLists.txt
--- OpenCV-2.0.0/CMakeLists.txt.opencvconfig	2010-08-26 09:08:23.105288296 -0500
+++ OpenCV-2.0.0/CMakeLists.txt	2010-08-26 09:09:05.677277182 -0500
@@ -739,7 +739,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_D
 
 if(UNIX)
     # For a command "FIND_PACKAGE(FOO)", CMake will look at the directory /usr/share|lib/FOO/FOOConfig.cmake, so:
-    install(FILES ${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/opencv/)
+    install(FILES ${CMAKE_BINARY_DIR}/unix-install/OpenCVConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/cmake/opencv/)
 endif()
 
 # --------------------------------------------------------------------------------------------
diff -up OpenCV-2.0.0/OpenCVConfig.cmake.in.opencvconfig OpenCV-2.0.0/OpenCVConfig.cmake.in
--- OpenCV-2.0.0/OpenCVConfig.cmake.in.opencvconfig	2009-09-30 19:20:57.000000000 -0500
+++ OpenCV-2.0.0/OpenCVConfig.cmake.in	2010-08-26 09:08:23.114288086 -0500
@@ -13,6 +13,7 @@
 #      - OpenCV_LIBS          : The list of libraries to links against.
 #      - OpenCV_LIB_DIR       : The directory where lib files are. Calling LINK_DIRECTORIES
 #                                with this path is NOT needed.
+#      - OpenCV_INCLUDE_DIRS  : The OpenCV include directories.
 #      - OpenCV_VERSION       : The  version of this OpenCV build. Example: "1.2.0"
 #      - OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION. Example: "1"
 #      - OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION. Example: "2"
@@ -29,6 +30,7 @@ get_filename_component(THIS_OPENCV_CONFI
 # Include directories to add to the user project:
 # ======================================================
 INCLUDE_DIRECTORIES(@CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
+SET(OpenCV_INCLUDE_DIRS @CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
 
 # ======================================================
 # Link directories to add to the user project: