Commit b4abe03c authored by Samuel Debionne's avatar Samuel Debionne

Update CMakeLists and fix error reported by msvc 14.1

parent 7d5e257a
......@@ -31,11 +31,20 @@ set(PCO_SDKLIN_DIR "${CMAKE_CURRENT_SOURCE_DIR}/sdkPcoLin" CACHE PATH "location
IF(WIN32)
#Sources
SET(${NAME}_srcs src/PcoCamera.cpp src/PcoInterface.cpp src/PcoDetInfoCtrlObj.cpp
src/PcoSyncCtrlObj.cpp src/PcoRoiCtrlObj.cpp
src/PcoBufferCtrlObj.cpp src/PcoHwEventCtrlObj.cpp
src/PcoCameraUtils.cpp src/PcoCameraSdk.cpp)
SET(${NAME}_srcs
src/PcoBinCtrlObj.cpp
src/PcoBufferCtrlObj.cpp
src/PcoCamera.cpp
src/PcoCameraSdk.cpp
src/PcoCameraSdkWin.cpp
src/PcoCameraSip.cpp
src/PcoCameraUtils.cpp
src/PcoDetInfoCtrlObj.cpp
src/PcoHwEventCtrlObj.cpp
src/PcoInterface.cpp
src/PcoRoiCtrlObj.cpp
src/PcoSyncCtrlObj.cpp
)
ADD_LIBRARY(lima${NAME} SHARED ${${NAME}_srcs})
......
......@@ -2831,7 +2831,7 @@ void Camera::_pco_GetFirmwareInfo(char *buf_in, int size_in, int &err)
PCO_FW_Vers strFirmwareVersion;
WORD wblock = 0;
int iCnt, err;
int iCnt;
// err = PCO_GetFirmwareInfo(m_handle, wblock++, &strFirmwareVersion);
err = PCO_GetFirmwareInfo(m_handle, wblock++, &strFirmwareVersion);
nrDev = (err == PCO_NOERROR) ? strFirmwareVersion.DeviceNum : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment