Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-misc/kio-upnp-ms/files: FindHUpnp.cmake
Date: Tue, 22 Feb 2011 21:43:37
Message-Id: 20110222214327.9C6AB20057@flycatcher.gentoo.org
1 ottxor 11/02/22 21:43:27
2
3 Added: FindHUpnp.cmake
4 Log:
5 import from cj-overlay (dep for bug #351916)
6
7 (Portage version: 2.1.9.25/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 kde-misc/kio-upnp-ms/files/FindHUpnp.cmake
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-misc/kio-upnp-ms/files/FindHUpnp.cmake?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-misc/kio-upnp-ms/files/FindHUpnp.cmake?rev=1.1&content-type=text/plain
14
15 Index: FindHUpnp.cmake
16 ===================================================================
17 # - Find HUpnp
18 # HUpnp is a Universal Plug and Play (UPnP) library
19 # used by the UPnP collection.
20 # Defines:
21 # HUPNP_INCLUDE_DIR
22 # HUPNP_LIBS
23 # HUPNP_FOUND
24
25 find_path(HUPNP_INCLUDE_DIR HUpnp HINTS ${KDE4_INCLUDE_DIR})
26
27 find_library(HUPNP_LIBS HUpnp PATHS ${KDE4_LIB_DIR})
28
29 if(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)
30 set(HUPNP_FOUND TRUE)
31 message(STATUS "Found HUpnp")
32 else(HUPNP_INCLUDE_DIR and HUPNP_LIBS)
33 set(HUPNP_FOUND FALSE)
34 if(HUPNP_FIND_REQUIRED)
35 message(FATAL_ERROR "Could NOT find required package HUpnp: <http://herqq.org>")
36 endif(HUPNP_FIND_REQUIRED)
37 endif(HUPNP_INCLUDE_DIR AND HUPNP_LIBS)