OpenCVFindLibsVideo.cmake.patch
OpenCVFindLibsVideo.cmake (working copy) | ||
---|---|---|
49 | 49 |
set(_PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${CMAKE_OPENCV_GCC_VERSION_MAJOR}.${CMAKE_OPENCV_GCC_VERSION_MINOR}") |
50 | 50 |
endif() |
51 | 51 | |
52 |
set(PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${CMAKE_STATIC_LIBRARY_PREFIX}PvAPI${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE PATH "The PvAPI library") |
|
52 |
if(WIN32) |
|
53 |
if(MINGW) |
|
54 |
add_definitions(-DPVDECL=__stdcall) |
|
55 |
endif(MINGW) |
|
56 |
set(PVAPI_LIBRARY "${_PVAPI_LIBRARY}/PvAPI.lib" CACHE PATH "The PvAPI library") |
|
57 |
else(WIN32) |
|
58 |
set(PVAPI_LIBRARY "${_PVAPI_LIBRARY}/${CMAKE_STATIC_LIBRARY_PREFIX}PvAPI${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE PATH "The PvAPI library") |
|
59 |
endif(WIN32) |
|
53 | 60 |
if(EXISTS "${PVAPI_LIBRARY}") |
54 | 61 |
set(HAVE_PVAPI TRUE) |
55 | 62 |
endif() |