set(OPENCV_SVNVERSION "")\r
endif()\r
\r
+# ----------------------------------------------------------------------------\r
+# Detect Microsoft compiler:\r
+# ----------------------------------------------------------------------------\r
+if(CMAKE_CL_64)\r
+ set(MSVC64 1)\r
+endif()\r
\r
# ----------------------------------------------------------------------------\r
# Detect GNU version:\r
\r
if (MSVC)\r
set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} vfw32)\r
+ if (NOT BUILD_SHARED_LIBS)\r
+ if (MSVC64)\r
+ if(HAVE_VIDEOINPUT)\r
+ set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} ${CMAKE_SOURCE_DIR}/3rdparty/lib/videoInput64.lib strmiids)\r
+ endif()\r
+ elseif (MSVC)\r
+ if(HAVE_VIDEOINPUT)\r
+ set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} ${CMAKE_SOURCE_DIR}/3rdparty/lib/videoInput.lib strmiids)\r
+ endif()\r
+ endif()\r
+ endif()\r
endif()\r
\r
if(MINGW)\r
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})
if(PYTHON_USE_NUMPY)
if(ENABLE_SOLUTION_FOLDERS)\r
set_target_properties(${the_target} PROPERTIES FOLDER "samples//c")\r
endif()\r
-\r
if(WIN32)\r
+ if (MSVC AND NOT BUILD_SHARED_LIBS)\r
+ set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG")\r
+ endif()\r
install(TARGETS ${the_target}\r
RUNTIME DESTINATION "samples/c" COMPONENT main)\r
endif()\r
endif()
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}
RUNTIME DESTINATION "samples/cpp" COMPONENT main)
endif()
endif()\r
\r
if(WIN32)\r
+ if (MSVC AND NOT BUILD_SHARED_LIBS)\r
+ set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG")\r
+ endif()\r
install(TARGETS ${the_target}\r
RUNTIME DESTINATION "samples/gpu" COMPONENT main)\r
endif()\r