fixed OpenCVConfig.cmake for creating Xcode projects

This commit is contained in:
Vadim Pisarevsky 2012-02-08 05:45:58 +00:00
parent 237b3ed3a0
commit a618b774f2

View File

@ -103,7 +103,14 @@ SET(OpenCV2_INCLUDE_DIRS @CMAKE_OPENCV2_INCLUDE_DIRS_CONFIGCMAKE@)
if(OpenCV2_INCLUDE_DIRS)
include_directories(${OpenCV2_INCLUDE_DIRS})
list(APPEND OpenCV_INCLUDE_DIRS ${OpenCV2_INCLUDE_DIRS})
set(OpenCV_AddDebugRelease)
if(MSVC)
set(OpenCV_AddDebugRelease 1)
elseif(CMAKE_GENERATOR MATCHES Xcode)
set(OpenCV_AddDebugRelease 1)
endif()
if(OpenCV_AddDebugRelease)
set(OpenCV_LIB_DIR_OPT "${OpenCV_LIB_DIR_OPT}/Release")
set(OpenCV_LIB_DIR_DBG "${OpenCV_LIB_DIR_DBG}/Debug")
set(OpenCV_3RDPARTY_LIB_DIR_OPT "${OpenCV_3RDPARTY_LIB_DIR_OPT}/Release")