summaryrefslogtreecommitdiff
blob: 9c7bf7c266262e0b0f77301642a0da99359332d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# - Find HUpnp
# HUpnp is a Universal Plug and Play (UPnP) library
# used by the UPnP collection.
# Defines:
# HUPNP_INCLUDE_DIR
# HUPNP_LIBS
# HUPNP_FOUND

find_path(HUPNP_INCLUDE_DIR HUpnp HINTS ${KDE4_INCLUDE_DIR})

find_library(HUPNP_LIBS HUpnp PATHS ${KDE4_LIB_DIR})

if(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)
  set(HUPNP_FOUND TRUE)
  message(STATUS "Found HUpnp")
else(HUPNP_INCLUDE_DIR and HUPNP_LIBS)
  set(HUPNP_FOUND FALSE)
  if(HUPNP_FIND_REQUIRED)
    message(FATAL_ERROR "Could NOT find required package HUpnp: <http://herqq.org>")
  endif(HUPNP_FIND_REQUIRED)
endif(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)