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.

FindThirdPartyTVicPort.cmake 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # ---------------------------------
  2. # Finds TVicPort toolkit
  3. #
  4. # Sets TVICPORT_FOUND
  5. # Sets TVICPORT_LIBRARIES
  6. # Sets TVICPORT_LIBRARY_DIRS
  7. # Sets TVICPORT_LDFLAGS
  8. # Sets TVICPORT_LDFLAGS_OTHERS
  9. # Sets TVICPORT_INCLUDE_DIRS
  10. # Sets TVICPORT_CFLAGS
  11. # Sets TVICPORT_CFLAGS_OTHERS
  12. # ---------------------------------
  13. IF(WIN32)
  14. SET(TVICPORT_tvicport_INCLUDE_PATH "TVICPORT_tvicport_INCLUDE_PATH-NOTFOUND")
  15. FIND_PATH(TVICPORT_tvicport_INCLUDE_PATH "TVicPort.h"
  16. PATHS "${OV_CUSTOM_DEPENDENCIES_PATH}/tvicport/include")
  17. # FIND_LIBRARY(TVICPORT_tvicport_LIBRARY
  18. # NAMES TVicPort
  19. # PATHS "${OV_CUSTOM_DEPENDENCIES_PATH}/tvicport/libs")
  20. ENDIF(WIN32)
  21. IF(TVICPORT_tvicport_INCLUDE_PATH)
  22. IF(TVICPORT_tvicport_LIBRARY)
  23. SET(TVICPORT_FOUND TRUE)
  24. #SET(TVICPORT_LIBRARIES ${TVICPORT_tvicport_LIBRARY})
  25. #SET(TVICPORT_LIBRARY_DIRS "")
  26. SET(TVICPORT_LDFLAGS "")
  27. SET(TVICPORT_LDFLAGS_OTHERS "")
  28. SET(TVICPORT_INCLUDE_DIRS ${TVICPORT_tvicport_INCLUDE_PATH})
  29. SET(TVICPORT_CFLAGS "")
  30. SET(TVICPORT_CFLAGS_OTHERS "")
  31. ENDIF(TVICPORT_tvicport_LIBRARY)
  32. ENDIF(TVICPORT_tvicport_INCLUDE_PATH)
  33. MARK_AS_ADVANCED(
  34. TVICPORT_tvicport_INCLUDE_PATH
  35. TVICPORT_tvicport_LIBRARY
  36. TVICPORT_FOUND
  37. #TVICPORT_LIBRARIES
  38. #TVICPORT_LIBRARY_DIRS
  39. TVICPORT_LDFLAGS
  40. TVICPORT_LDFLAGS_OTHERS
  41. TVICPORT_INCLUDE_DIRS
  42. TVICPORT_CFLAGS
  43. TVICPORT_CFLAGS_OTHERS
  44. )
  45. IF(TVICPORT_FOUND)
  46. debug_message( " Found TVicPort...")
  47. INCLUDE_DIRECTORIES(${TVICPORT_INCLUDE_DIRS})
  48. ADD_DEFINITIONS(${TVICPORT_CFLAGS})
  49. ADD_DEFINITIONS(${TVICPORT_CFLAGS_OTHERS})
  50. # LINK_DIRECTORIES(${EXPAT_LIBRARY_DIRS})
  51. #ARGET_LINK_LIBRARIES(${PROJECT_NAME} ${TVICPORT_LIBRARIES})
  52. ADD_DEFINITIONS(-DTARGET_HAS_ThirdPartyTVicPort)
  53. ELSE(TVICPORT_FOUND)
  54. MESSAGE(WARNING " FAILED to find TVicPort...")
  55. ENDIF(TVICPORT_FOUND)