Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
38b5d4ec
Commit
38b5d4ec
authored
Jul 01, 2011
by
Ethan Rublee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding namemangling to the opencv.pc file.
parent
529f1034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
CMakeLists.txt
CMakeLists.txt
+15
-5
No files found.
CMakeLists.txt
View file @
38b5d4ec
...
...
@@ -119,7 +119,7 @@ endif()
#name mangling
set
(
OPENCV_INCLUDE_PREFIX include
)
if
(
UNIX AND NOT ANDROID AND BUILD_SHARED_LIBS
)
option
(
OPENCV_MANGLED_INSTALL_PATHS
"Enables mangled install paths, that help with side by side installs"
False
)
option
(
OPENCV_MANGLED_INSTALL_PATHS
"Enables mangled install paths, that help with side by side installs
.
"
False
)
if
(
OPENCV_MANGLED_INSTALL_PATHS
)
set
(
OPENCV_INCLUDE_PREFIX include/opencv-
${
OPENCV_VERSION
}
)
endif
()
...
...
@@ -403,7 +403,7 @@ endif()
set
(
WITH_TBB OFF CACHE BOOL
"Include Intel TBB support"
)
set
(
WITH_IPP OFF CACHE BOOL
"Include Intel IPP support"
)
set
(
WITH_EIGEN ON CACHE BOOL
"Include Eigen2/Eigen3 support"
)
set
(
WITH_CUDA O
N
CACHE BOOL
"Include NVidia Cuda Runtime support"
)
set
(
WITH_CUDA O
FF
CACHE BOOL
"Include NVidia Cuda Runtime support"
)
set
(
WITH_OPENNI OFF CACHE BOOL
"Include OpenNI support"
)
...
...
@@ -922,6 +922,8 @@ if(WITH_CUDA)
unset
(
CUDA_ARCH_BIN CACHE
)
unset
(
CUDA_ARCH_PTX CACHE
)
endif
()
else
()
set
(
HAVE_CUDA 0
)
endif
()
...
...
@@ -1350,14 +1352,22 @@ set(libdir "\${exec_prefix}/lib")
set
(
includedir
"
\$
{prefix}/
${
OPENCV_INCLUDE_PREFIX
}
"
)
set
(
VERSION
${
OPENCV_VERSION
}
)
set
(
OPENCV_PC_FILE_NAME
"opencv.pc"
)
set
(
OPENCV_PC_FILE_NAME
opencv.pc
)
#need to be explicit with naming the pc file and version number for side by side installs to work.
if
(
OPENCV_MANGLED_INSTALL_PATHS
)
SET
(
OpenCV_LIB_COMPONENTS opencv_contrib opencv_legacy opencv_objdetect opencv_calib3d opencv_features2d opencv_video opencv_highgui opencv_ml opencv_imgproc opencv_flann opencv_core
)
#be explicit about the library names.
set
(
OpenCV_LIB_COMPONENTS_
)
foreach
(
CVLib
${
OpenCV_LIB_COMPONENTS
}
)
set
(
OpenCV_LIB_COMPONENTS_
"
${
OpenCV_LIB_COMPONENTS_
}
${
libdir
}
/lib
${
CVLib
}
.so.
${
OPENCV_VERSION
}
"
)
endforeach
()
set
(
OpenCV_LIB_COMPONENTS
${
OpenCV_LIB_COMPONENTS_
}
)
set
(
OPENCV_PC_FILE_NAME
"opencv-
${
OPENCV_VERSION
}
.pc"
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/opencv-XXX.pc.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/unix-install/
${
OPENCV_PC_FILE_NAME
}
"
@ONLY IMMEDIATE
)
else
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/opencv.pc.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/unix-install/
${
OPENCV_PC_FILE_NAME
}
"
@ONLY IMMEDIATE
)
endif
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/opencv.pc.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/unix-install/
${
OPENCV_PC_FILE_NAME
}
"
@ONLY IMMEDIATE
)
if
(
UNIX AND NOT ANDROID
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/unix-install/
${
OPENCV_PC_FILE_NAME
}
DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
/pkgconfig
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment