aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindHUpnp.cmake
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2021-03-29 20:28:58 +0200
committerChristophe Giboudeaux <christophe@krop.fr>2021-04-06 19:59:17 +0000
commit272352969834598cfd20f3e8b15916aa3ccebbbb (patch)
treed0d831203f0816ee2d4edecb526cdbdec64ea3d4 /attic/modules/FindHUpnp.cmake
parentd88db6a1469bdcb48e64f265d35a6f7867767b54 (diff)
downloadextra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.gz
extra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.bz2
Clean ECM's attic
Diffstat (limited to 'attic/modules/FindHUpnp.cmake')
-rw-r--r--attic/modules/FindHUpnp.cmake31
1 files changed, 0 insertions, 31 deletions
diff --git a/attic/modules/FindHUpnp.cmake b/attic/modules/FindHUpnp.cmake
deleted file mode 100644
index 85c80306..00000000
--- a/attic/modules/FindHUpnp.cmake
+++ /dev/null
@@ -1,31 +0,0 @@
-# - 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
-# HUPNP_VERSION_STRING - The version of HUpnp
-# HUPNP_VERSION_MAJOR - The major version of HUpnp
-# HUPNP_VERSION_MINOR - The minor version of HUpnp
-# HUPNP_VERSION_PATCH - The patch version of HUpnp
-#
-# Copyright (c) 2010, Paulo Romulo Alves Barros <paulo.romulo@kdemail.net>
-
-find_path( HUPNP_INCLUDE_DIR HUpnpCore/HUpnp )
-
-find_library( HUPNP_LIBS HUpnp )
-
-if( HUPNP_INCLUDE_DIR AND EXISTS "${HUPNP_INCLUDE_DIR}/HUpnpCore/public/hupnpinfo.h" )
- file( STRINGS "${HUPNP_INCLUDE_DIR}/HUpnpCore/public/hupnpinfo.h" HUPNP_INFO_H REGEX "^#define HUPNP_CORE_.*_VERSION .*$" )
- string( REGEX REPLACE ".*HUPNP_CORE_MAJOR_VERSION ([0-9]+).*" "\\1" HUPNP_VERSION_MAJOR "${HUPNP_INFO_H}" )
- string( REGEX REPLACE ".*HUPNP_CORE_MINOR_VERSION ([0-9]+).*" "\\1" HUPNP_VERSION_MINOR "${HUPNP_INFO_H}" )
- string( REGEX REPLACE ".*HUPNP_CORE_PATCH_VERSION ([0-9]+).*" "\\1" HUPNP_VERSION_PATCH "${HUPNP_INFO_H}" )
-
- set( HUPNP_VERSION_STRING "${HUPNP_VERSION_MAJOR}.${HUPNP_VERSION_MINOR}.${HUPNP_VERSION_PATCH}" )
-endif()
-
-include( FindPackageHandleStandardArgs )
-
-find_package_handle_standard_args( HUpnp DEFAULT_MSG HUPNP_INCLUDE_DIR HUPNP_LIBS )
-
-mark_as_advanced( HUPNP_INCLUDE_DIR HUPNP_LIBS )