Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
0cab986e
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0cab986e
编写于
11月 29, 2010
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
applied patches by sigma (ticket #644)
上级
16f50dbe
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
37 addition
and
9 deletion
+37
-9
CMakeLists.txt
CMakeLists.txt
+29
-5
OpenCVConfig.cmake.in
OpenCVConfig.cmake.in
+8
-4
未找到文件。
CMakeLists.txt
浏览文件 @
0cab986e
...
...
@@ -1068,7 +1068,7 @@ set(CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE "\"\"")
set
(
CMAKE_LIB_DIRS_CONFIGCMAKE
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
#exec_program(${CMAKE_COMMAND} ARGS "-E make_directory \"${CMAKE_BINARY_DIR}/unix-install/\"")
exec_program
(
mkdir ARGS
"-p
\"
${
CMAKE_BINARY_DIR
}
/unix-install/
\"
"
)
exec_program
(
mkdir ARGS
"-p
\"
${
CMAKE_BINARY_DIR
}
/unix-install/
\"
"
OUTPUT_VARIABLE RET_VAL
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/OpenCVConfig.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/unix-install/OpenCVConfig.cmake"
IMMEDIATE @ONLY
)
if
(
UNIX
)
...
...
@@ -1080,18 +1080,42 @@ endif()
# Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages
# -------------------------------------------------------------------------------------------
if
(
WIN32
)
# Set CMAKE_INCLUDE_DIRS_CONFIGCMAKE to the list of include directories:
# support for 3rdparty libraries.
# This will expand to, for example, <program files>/OpenCV 1.1.0/include
set
(
CMAKE_INCLUDE_DIRS_CONFIGCMAKE
"
\"\$
{THIS_OPENCV_CONFIG_PATH}/include
\"
\"\$
{THIS_OPENCV_CONFIG_PATH}/include/opencv
\"
"
)
set
(
CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE
"
\"
${
THIS_OPENCV_CONFIG_PATH
}
\"
"
)
set
(
CMAKE_INCLUDE_DIRS_CONFIGCMAKE
"
\"\$
{THIS_OPENCV_CONFIG_PATH}/include
\"
\"\$
{THIS_OPENCV_CONFIG_PATH}/include/opencv
\"
\"\$
{THIS_OPENCV_CONFIG_PATH}/3rdparty/include
\"
"
)
set
(
CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE
"
\"\$
{THIS_OPENCV_CONFIG_PATH}
\"
"
)
# This will expand to, for example, <program files>/OpenCV 1.1.0/lib
set
(
CMAKE_LIB_DIRS_CONFIGCMAKE
"
\"\$
{THIS_OPENCV_CONFIG_PATH}/lib
\"
"
)
# support for 3rdparty libraries.
set
(
CMAKE_LIB_DIRS_CONFIGCMAKE
"
\"\$
{THIS_OPENCV_CONFIG_PATH}/lib
\"
\"\$
{THIS_OPENCV_CONFIG_PATH}/3rdparty/lib
\"
"
)
#exec_program(${CMAKE_COMMAND} ARGS "-E make_directory \"${CMAKE_BINARY_DIR}/win-install/\"")
exec_program
(
mkdir ARGS
"-p
\"
${
CMAKE_BINARY_DIR
}
/win-install/
\"
"
)
exec_program
(
mkdir ARGS
"-p
\"
${
CMAKE_BINARY_DIR
}
/win-install/
\"
"
OUTPUT_VARIABLE RET_VAL
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/OpenCVConfig.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/win-install/OpenCVConfig.cmake"
IMMEDIATE @ONLY
)
# Configure the OpenCVConfig.cmake file to have the right paths pointing to the install directory
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/OpenCVConfig.cmake.in"
"
${
CMAKE_INSTALL_PREFIX
}
/OpenCVConfig.cmake"
IMMEDIATE @ONLY
)
# if videoInput support is enabled (which is by default on WIN32) copy the static library required to the installation path
# DESTINATION could also be "${CMAKE_INSTALL_PREFIX}/lib") to simplify dev environment setup of client applications
IF
(
HAVE_VIDEOINPUT
)
install
(
FILES
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/3rdparty/lib/videoInput.lib"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/3rdparty/lib/videoInput64.lib"
DESTINATION
"
${
CMAKE_INSTALL_PREFIX
}
/3rdparty/lib"
)
install
(
FILES
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/3rdparty/include/videoInput.h"
DESTINATION
"
${
CMAKE_INSTALL_PREFIX
}
/3rdparty/include"
)
ENDIF
()
# Add the OpenCV configuration header to the install path
# Useful for instance if a client application checks against the features OpenCV has been compiled with
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/cvconfig.h"
DESTINATION
"
${
CMAKE_INSTALL_PREFIX
}
/include"
)
endif
()
...
...
OpenCVConfig.cmake.in
浏览文件 @
0cab986e
...
...
@@ -35,16 +35,20 @@ get_filename_component(THIS_OPENCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH
# ======================================================
# Include directories to add to the user project:
# ======================================================
INCLUDE_DIRECTORIES(@CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
# Provide the include directories to the caller
SET(OpenCV_INCLUDE_DIRS @CMAKE_INCLUDE_DIRS_CONFIGCMAKE@)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
# ======================================================
# Link directories to add to the user project:
# ======================================================
LINK_DIRECTORIES("@CMAKE_LIB_DIRS_CONFIGCMAKE@")
# Provide the libs directory anyway, it may be needed in some cases.
SET(OpenCV_LIB_DIR "@CMAKE_LIB_DIRS_CONFIGCMAKE@")
SET(OpenCV_LIB_DIR @CMAKE_LIB_DIRS_CONFIGCMAKE@)
LINK_DIRECTORIES(${OpenCV_LIB_DIR})
# ====================================================================
# Link libraries: e.g. opencv_core220.so, opencv_imgproc220d.lib, etc...
...
...
@@ -78,7 +82,7 @@ endif(NOT @CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE@ STREQUAL "")
# many more dependencies:
IF (NOT @OPENCV_BUILD_SHARED_LIB@)
# Under static libs, the user of OpenCV needs access to the 3rdparty libs as well:
LINK_DIRECTORIES("@CMAKE_BINARY_DIR
@/3rdparty/lib")
#LINK_DIRECTORIES(@CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE
@/3rdparty/lib")
SET(OpenCV_LIBS
@OPENCV_LINKER_LIBS@
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录