diff options
-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 |