From bb5e1ef1d1dad44afa7f2957eeef861a95a66202 Mon Sep 17 00:00:00 2001 From: Paulo Romulo Date: Fri, 27 Aug 2010 07:16:09 +0000 Subject: Building Solid UPnP backend by default now. HUPnP library required. svn path=/trunk/KDE/kdelibs/; revision=1168594 --- modules/CMakeLists.txt | 1 + modules/FindHUpnp.cmake | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/FindHUpnp.cmake (limited to 'modules') diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 03e4d15d..8f600c82 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -159,6 +159,7 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake FindPyQt.py FindSIP.py PythonCompile.py + FindHUpnp.cmake ) if (KDE4_ENABLE_UAC_MANIFEST) diff --git a/modules/FindHUpnp.cmake b/modules/FindHUpnp.cmake new file mode 100644 index 00000000..cd2b6216 --- /dev/null +++ b/modules/FindHUpnp.cmake @@ -0,0 +1,18 @@ +# - Try to find HUPnP library +# Once done this will define +# +# HUPNP_FOUND - system has HUPnP +# HUPNP_INCLUDE_DIR - the LIBHUpnp include directory +# HUPNP_LIBS - the LIBHUpnp libraries +# +# Copyright (c) 2010, Paulo Romulo Alves Barros + +find_path( HUPNP_INCLUDE_DIR HUpnp ) + +find_library( HUPNP_LIBS HUpnp ) + +include( FindPackageHandleStandardArgs ) + +find_package_handle_standard_args( HUpnp "Could not find HUPnP" HUPNP_INCLUDE_DIR HUPNP_LIBS ) + +mark_as_advanced( HUPNP_INCLUDE_DIR HUPNP_LIBS ) \ No newline at end of file -- cgit v1.2.1