OpenCVConfig.cmake.in.patch

stathis --, 2010-11-04 02:35 pm

Download (1.4 kB)

 
OpenCVConfig.cmake.in.new 2010-11-04 15:15:55.132609400 +0200
35 35
# ======================================================
36 36
# Include directories to add to the user project:
37 37
# ======================================================
38
INCLUDE_DIRECTORIES(@CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
38

  
39 39
# Provide the include directories to the caller
40 40
SET(OpenCV_INCLUDE_DIRS @CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
41 41

  
42
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
43

  
42 44
# ======================================================
43 45
# Link directories to add to the user project:
44 46
# ======================================================
45
LINK_DIRECTORIES("@CMAKE_LIB_DIRS_CONFIGCMAKE@")
47

  
46 48
# Provide the libs directory anyway, it may be needed in some cases.
47
SET(OpenCV_LIB_DIR "@CMAKE_LIB_DIRS_CONFIGCMAKE@")
49
SET(OpenCV_LIB_DIR @CMAKE_LIB_DIRS_CONFIGCMAKE@)
50

  
51
LINK_DIRECTORIES(${OpenCV_LIB_DIR})
48 52

  
49 53
# ====================================================================
50 54
# Link libraries: e.g.   opencv_core220.so, opencv_imgproc220d.lib, etc...
......
78 82
#  many more dependencies:
79 83
IF (NOT @OPENCV_BUILD_SHARED_LIB@)
80 84
	# Under static libs, the user of OpenCV needs access to the 3rdparty libs as well:
81
	LINK_DIRECTORIES("@CMAKE_BINARY_DIR@/3rdparty/lib")
85
	#LINK_DIRECTORIES(@CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE@/3rdparty/lib")
82 86

  
83 87
	SET(OpenCV_LIBS
84 88
		@OPENCV_LINKER_LIBS@