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.

FindThirdPartyMCS.cmake 652B

3 years ago
123456789101112131415161718192021
  1. GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_ThirdPartyMCS)
  2. IF(WIN32)
  3. FIND_PATH(PATH_MCS nvxmcs.dll PATHS ${LIST_DEPENDENCIES_PATH} PATH_SUFFIXES sdk_mcs/lib NO_DEFAULT_PATH)
  4. ENDIF(WIN32)
  5. IF(PATH_MCS)
  6. OV_PRINT(OV_PRINTED " Found MCS device SDK...")
  7. INCLUDE_DIRECTORIES(${PATH_MCS}/../include/)
  8. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PATH_MCS}/nvxmcs.lib)
  9. INSTALL(PROGRAMS "${PATH_MCS}/nvxmcs.dll" DESTINATION ${DIST_BINDIR})
  10. ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyMCS)
  11. ELSE(PATH_MCS)
  12. OV_PRINT(OV_PRINTED " FAILED to find MCS device SDK (optional driver)")
  13. ENDIF(PATH_MCS)
  14. SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_ThirdPartyMCS "Yes")