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.

FindThirdPartyXerces.cmake 777B

3 years ago
123456789101112131415161718192021222324252627282930
  1. # ---------------------------------
  2. # Finds Xerces dependency
  3. # ---------------------------------
  4. IF(WIN32)
  5. FIND_PATH(XERCES_ROOT lib PATHS ${OV_CUSTOM_DEPENDENCIES_PATH} PATH_SUFFIXES xerces-c NO_DEFAULT_PATH)
  6. SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${XERCES_ROOT}/include")
  7. SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${XERCES_ROOT}/lib")
  8. INSTALL(
  9. DIRECTORY ${XERCES_ROOT}/bin/
  10. DESTINATION ${DIST_BINDIR}
  11. FILES_MATCHING PATTERN "*.dll")
  12. ENDIF()
  13. FIND_PACKAGE(XercesC REQUIRED)
  14. IF(XercesC_FOUND)
  15. debug_message( " Found xerces...")
  16. INCLUDE_DIRECTORIES(${XercesC_INCLUDE_DIRS})
  17. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${XercesC_LIBRARIES})
  18. ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyXERCES)
  19. ELSE()
  20. MESSAGE(WARNING " FAILED to find xerces...")
  21. ENDIF()