diff options
author | Paulo Romulo <paulo.romulo@kdemail.net> | 2010-08-27 07:16:09 +0000 |
---|---|---|
committer | Paulo Romulo <paulo.romulo@kdemail.net> | 2010-08-27 07:16:09 +0000 |
commit | bb5e1ef1d1dad44afa7f2957eeef861a95a66202 (patch) | |
tree | 5ea1d7e8f44dff4c9e1c8f712439d76ce18b7a02 | |
parent | 13878c79535651b151b80526f6052904c4189023 (diff) | |
download | extra-cmake-modules-bb5e1ef1d1dad44afa7f2957eeef861a95a66202.tar.gz extra-cmake-modules-bb5e1ef1d1dad44afa7f2957eeef861a95a66202.tar.bz2 |
Building Solid UPnP backend by default now. HUPnP library required.
svn path=/trunk/KDE/kdelibs/; revision=1168594
-rw-r--r-- | modules/CMakeLists.txt | 1 | ||||
-rw-r--r-- | modules/FindHUpnp.cmake | 18 |
2 files changed, 19 insertions, 0 deletions
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 <paulo.romulo@kdemail.net> + +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 |