Guest User

FindHUpnp.cmake

a guest
Oct 21st, 2011
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.88 KB | None | 0 0
  1. # - Find HUpnp
  2. # HUpnp is a Universal Plug and Play (UPnP) library
  3. # used by the UPnP collection.
  4. # Defines:
  5. # HUPNP_INCLUDE_DIR
  6. # HUPNP_LIBS
  7. # HUPNP_FOUND
  8.  
  9. find_path(HUPNP_INCLUDE_DIR HUpnpCore HINTS ${KDE4_INCLUDE_DIR})
  10.  
  11. find_library(HUPNP_LIBS HUpnp PATHS ${KDE4_LIB_DIR})
  12.  
  13. if(HUPNP_INCLUDE_DIR)
  14.   message(STATUS "Include dir match (${KDE4_INCLUDE_DIR})")
  15. endif(HUPNP_INCLUDE_DIR)
  16.  
  17. if(HUPNP_LIBS)
  18.   message(STATUS "Library dir match")
  19.  else(HUPNP_LIBS)
  20.   message(STATUS "Library not found in ${KDE4_LIB_DIR}")
  21. endif(HUPNP_LIBS)
  22.  
  23. if(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)
  24.   set(HUPNP_FOUND TRUE)
  25.   message(STATUS "Found HUpnp")
  26. else(HUPNP_INCLUDE_DIR and HUPNP_LIBS)
  27.   set(HUPNP_FOUND FALSE)
  28.   if(HUPNP_FIND_REQUIRED)
  29.     message(FATAL_ERROR "Could NOT find required package HUpnp: <http://herqq.org>")
  30.   endif(HUPNP_FIND_REQUIRED)
  31. endif(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment