You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindThirdPartyMicromed.cmake 1.2KB

3 years ago
1234567891011121314151617181920212223242526
  1. GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_ThirdPartyMicromed)
  2. IF(WIN32)
  3. FIND_PATH(PATH_MICROMED_RELEASE dllMicromed.dll PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_micromed/Release NO_DEFAULT_PATH)
  4. FIND_PATH(PATH_MICROMED_DEBUG dllMicromed.dll PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_micromed/Debug NO_DEFAULT_PATH)
  5. ENDIF(WIN32)
  6. IF(PATH_MICROMED_RELEASE AND PATH_MICROMED_DEBUG)
  7. OV_PRINT(OV_PRINTED " Found Micromed dll...")
  8. OV_PRINT(OV_PRINTED " [ OK ] dll ${PATH_MICROMED_RELEASE}/dllMicromed.dll")
  9. OV_PRINT(OV_PRINTED " [ OK ] dll ${PATH_MICROMED_DEBUG}/dllMicromed.dll")
  10. INSTALL(PROGRAMS "${PATH_MICROMED_RELEASE}/dllMicromed.dll" DESTINATION ${DIST_BINDIR} CONFIGURATIONS Release Optimized)
  11. INSTALL(PROGRAMS "${PATH_MICROMED_DEBUG}/dllMicromed.dll" DESTINATION ${DIST_BINDIR} CONFIGURATIONS Debug)
  12. INSTALL(PROGRAMS "${PATH_MICROMED_DEBUG}/dllMicromed.pdb" DESTINATION ${DIST_BINDIR} CONFIGURATIONS Debug)
  13. ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyMicromed)
  14. ELSE(PATH_MICROMED_RELEASE AND PATH_MICROMED_DEBUG)
  15. OV_PRINT(OV_PRINTED " FAILED to find Micromed device dlls (optional driver)")
  16. ENDIF(PATH_MICROMED_RELEASE AND PATH_MICROMED_DEBUG)
  17. SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_ThirdPartyMicromed "Yes")