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
6aabf72b
Commit
6aabf72b
authored
May 31, 2011
by
Alexander Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed OPENCV_BUILD_SHARED_LIB in favor of BUILD_SHARED_LIBS
parent
926a6bba
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
14 deletions
+7
-14
CMakeLists.txt
CMakeLists.txt
+0
-7
OpenCVConfig.cmake.in
OpenCVConfig.cmake.in
+2
-2
OpenCVModule.cmake
OpenCVModule.cmake
+1
-1
cvconfig.h.cmake
cvconfig.h.cmake
+1
-1
system.cpp
modules/core/src/system.cpp
+1
-1
CMakeLists.txt
modules/gpu/CMakeLists.txt
+1
-1
CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
6aabf72b
...
...
@@ -99,13 +99,6 @@ endif()
# ----------------------------------------------------------------------------
set
(
BUILD_SHARED_LIBS ON CACHE BOOL
"Build shared libraries (.dll/.so) instead of static ones (.lib/.a)"
)
if
(
BUILD_SHARED_LIBS
)
set
(
OPENCV_BUILD_SHARED_LIB 1
)
# For cvconfig.h, etc.
else
(
BUILD_SHARED_LIBS
)
set
(
OPENCV_BUILD_SHARED_LIB 0
)
endif
(
BUILD_SHARED_LIBS
)
# ----------------------------------------------------------------------------
# Variables for cvconfig.h.cmake
# ----------------------------------------------------------------------------
...
...
OpenCVConfig.cmake.in
View file @
6aabf72b
...
...
@@ -86,7 +86,7 @@ endif(NOT @CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE@ STREQUAL "")
# For OpenCV built as static libs, we need the user to link against
# many more dependencies:
IF (NOT @
OPENCV_BUILD_SHARED_LIB
@)
IF (NOT @
BUILD_SHARED_LIBS
@)
# Under static libs, the user of OpenCV needs access to the 3rdparty libs as well:
LINK_DIRECTORIES(@CMAKE_LIB_DIRS_CONFIGCMAKE@/../3rdparty/lib)
if(WIN32)
...
...
@@ -112,7 +112,7 @@ IF (NOT @OPENCV_BUILD_SHARED_LIB@)
set(OpenCV_LIBS ${OpenCV_LIBS} ${OPENCV_EXTRA_COMPONENTS})
endif(CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MINOR_VERSION GREATER 4)
ENDIF(NOT @
OPENCV_BUILD_SHARED_LIB
@)
ENDIF(NOT @
BUILD_SHARED_LIBS
@)
# ======================================================
...
...
OpenCVModule.cmake
View file @
6aabf72b
...
...
@@ -41,7 +41,7 @@ macro(define_opencv_module name)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"modules"
)
endif
()
if
(
OPENCV_BUILD_SHARED_LIB
)
if
(
BUILD_SHARED_LIBS
)
if
(
MSVC
)
set_target_properties
(
${
the_target
}
PROPERTIES DEFINE_SYMBOL CVAPI_EXPORTS
)
else
()
...
...
cvconfig.h.cmake
View file @
6aabf72b
...
...
@@ -122,7 +122,7 @@
#cmakedefine HAVE_IPP
/* OpenCV compiled as static or dynamic libs */
#cmakedefine
OPENCV_BUILD_SHARED_LIB
#cmakedefine
BUILD_SHARED_LIBS
/* Name of package */
#define PACKAGE "${PACKAGE}"
...
...
modules/core/src/system.cpp
View file @
6aabf72b
...
...
@@ -748,7 +748,7 @@ cvGetModuleInfo( const char* name, const char **version, const char **plugin_lis
*
plugin_list
=
plugin_list_buf
;
}
#if defined
OPENCV_BUILD_SHARED_LIB
&& defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
#if defined
BUILD_SHARED_LIBS
&& defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
fdwReason
,
LPVOID
)
{
if
(
fdwReason
==
DLL_THREAD_DETACH
||
fdwReason
==
DLL_PROCESS_DETACH
)
...
...
modules/gpu/CMakeLists.txt
View file @
6aabf72b
...
...
@@ -68,7 +68,7 @@ if (HAVE_CUDA)
string
(
REPLACE
"/EHsc-"
"/EHs"
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
"
)
endif
()
if
(
OPENCV_BUILD_SHARED_LIB
)
if
(
BUILD_SHARED_LIBS
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-Xcompiler;-DCVAPI_EXPORTS"
)
endif
()
...
...
modules/highgui/CMakeLists.txt
View file @
6aabf72b
...
...
@@ -244,7 +244,7 @@ set(lib_srcs ${highgui_srcs} ${grfmt_srcs})
# ----------------------------------------------------------------------------------
set
(
the_target
"opencv_highgui"
)
if
(
OPENCV_BUILD_SHARED_LIB
)
if
(
BUILD_SHARED_LIBS
)
add_definitions
(
-DHIGHGUI_EXPORTS -DCVAPI_EXPORTS
)
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