2021-10-14 13:47:35 +02:00

20 lines
571 B
CMake

GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_ThirdPartyMitsar)
IF(WIN32)
FIND_PATH(PATH_MITSAR MitsarDll.dll PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_mitsar NO_DEFAULT_PATH)
ENDIF(WIN32)
IF(PATH_MITSAR)
OV_PRINT(OV_PRINTED " Found Mitsar dll...")
INSTALL(PROGRAMS "${PATH_MITSAR}/MitsarDll.dll" DESTINATION ${DIST_BINDIR})
ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyMitsar)
ELSE(PATH_MITSAR)
OV_PRINT(OV_PRINTED " FAILED to find Mitsar device dll (optional driver)")
ENDIF(PATH_MITSAR)
SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_ThirdPartyMitsar "Yes")