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
33e71127
Commit
33e71127
authored
May 30, 2011
by
Alexander Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed problem with VideoInput on Windows when OpenCV compiled statically (ticket #573)
parent
dce5bf49
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
1 deletion
+30
-1
CMakeLists.txt
CMakeLists.txt
+17
-0
CMakeLists.txt
modules/python/CMakeLists.txt
+4
-0
CMakeLists.txt
samples/c/CMakeLists.txt
+3
-1
CMakeLists.txt
samples/cpp/CMakeLists.txt
+3
-0
CMakeLists.txt
samples/gpu/CMakeLists.txt
+3
-0
No files found.
CMakeLists.txt
View file @
33e71127
...
@@ -139,6 +139,12 @@ else()
...
@@ -139,6 +139,12 @@ else()
set
(
OPENCV_SVNVERSION
""
)
set
(
OPENCV_SVNVERSION
""
)
endif
()
endif
()
# ----------------------------------------------------------------------------
# Detect Microsoft compiler:
# ----------------------------------------------------------------------------
if
(
CMAKE_CL_64
)
set
(
MSVC64 1
)
endif
()
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Detect GNU version:
# Detect GNU version:
...
@@ -805,6 +811,17 @@ if(WIN32)
...
@@ -805,6 +811,17 @@ if(WIN32)
if
(
MSVC
)
if
(
MSVC
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
vfw32
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
vfw32
)
if
(
NOT BUILD_SHARED_LIBS
)
if
(
MSVC64
)
if
(
HAVE_VIDEOINPUT
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
${
CMAKE_SOURCE_DIR
}
/3rdparty/lib/videoInput64.lib strmiids
)
endif
()
elseif
(
MSVC
)
if
(
HAVE_VIDEOINPUT
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
${
CMAKE_SOURCE_DIR
}
/3rdparty/lib/videoInput.lib strmiids
)
endif
()
endif
()
endif
()
endif
()
endif
()
if
(
MINGW
)
if
(
MINGW
)
...
...
modules/python/CMakeLists.txt
View file @
33e71127
...
@@ -60,6 +60,10 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; pri
...
@@ -60,6 +60,10 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; pri
set_target_properties
(
${
cv_target
}
PROPERTIES SUFFIX
${
CVPY_SUFFIX
}
)
set_target_properties
(
${
cv_target
}
PROPERTIES SUFFIX
${
CVPY_SUFFIX
}
)
if
(
MSVC AND NOT BUILD_SHARED_LIBS
)
set_target_properties
(
${
cv_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
endif
()
set
(
cvpymodules
${
cv_target
}
)
set
(
cvpymodules
${
cv_target
}
)
if
(
PYTHON_USE_NUMPY
)
if
(
PYTHON_USE_NUMPY
)
...
...
samples/c/CMakeLists.txt
View file @
33e71127
...
@@ -43,8 +43,10 @@ if (BUILD_EXAMPLES)
...
@@ -43,8 +43,10 @@ if (BUILD_EXAMPLES)
if
(
ENABLE_SOLUTION_FOLDERS
)
if
(
ENABLE_SOLUTION_FOLDERS
)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"samples//c"
)
set_target_properties
(
${
the_target
}
PROPERTIES FOLDER
"samples//c"
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
if
(
MSVC AND NOT BUILD_SHARED_LIBS
)
set_target_properties
(
${
the_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
endif
()
install
(
TARGETS
${
the_target
}
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
"samples/c"
COMPONENT main
)
RUNTIME DESTINATION
"samples/c"
COMPONENT main
)
endif
()
endif
()
...
...
samples/cpp/CMakeLists.txt
View file @
33e71127
...
@@ -45,6 +45,9 @@ if (BUILD_EXAMPLES)
...
@@ -45,6 +45,9 @@ if (BUILD_EXAMPLES)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
if
(
MSVC AND NOT BUILD_SHARED_LIBS
)
set_target_properties
(
${
the_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
endif
()
install
(
TARGETS
${
the_target
}
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
"samples/cpp"
COMPONENT main
)
RUNTIME DESTINATION
"samples/cpp"
COMPONENT main
)
endif
()
endif
()
...
...
samples/gpu/CMakeLists.txt
View file @
33e71127
...
@@ -47,6 +47,9 @@ if (BUILD_EXAMPLES)
...
@@ -47,6 +47,9 @@ if (BUILD_EXAMPLES)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
if
(
MSVC AND NOT BUILD_SHARED_LIBS
)
set_target_properties
(
${
the_target
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG"
)
endif
()
install
(
TARGETS
${
the_target
}
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
"samples/gpu"
COMPONENT main
)
RUNTIME DESTINATION
"samples/gpu"
COMPONENT main
)
endif
()
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