[vlc-devel] commit: cmake: Add FindTaglib.cmake. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Apr 19 17:12:03 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Apr 19 17:12:12 2008 +0200| [be7b980b84c161c54821b7b4295140b730e9036c]

cmake: Add FindTaglib.cmake.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be7b980b84c161c54821b7b4295140b730e9036c
---

 extras/buildsystem/cmake/include/FindTaglib.cmake |   28 +++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/extras/buildsystem/cmake/include/FindTaglib.cmake b/extras/buildsystem/cmake/include/FindTaglib.cmake
new file mode 100644
index 0000000..c219e00
--- /dev/null
+++ b/extras/buildsystem/cmake/include/FindTaglib.cmake
@@ -0,0 +1,28 @@
+# - Find library containing Taglib()
+# The following variables are set if Taglib is found. If Taglib is not
+# found, Taglib_FOUND is set to false.
+#  Taglib_FOUND     - System has Taglib.
+#  Taglib_LIBRARIES - Link these to use Taglib.
+#  Taglib_CFLAGS - Link these to use Taglib.
+
+
+if (NOT Taglib_SEARCHED)
+    include(CheckLibraryExists)
+
+    set(Taglib_SEARCHED TRUE CACHE INTERNAL "")
+    set(Taglib_FOUND FALSE CACHE INTERNAL "")
+
+    pkg_check_modules(Taglib taglib)
+
+    if (Taglib_FOUND)
+      if (NOT Taglib_FIND_QUIETLY)
+        message(STATUS "Found Taglib in: ${Taglib_LIBRARIES}")
+      endif (NOT Taglib_FIND_QUIETLY)
+    else (Taglib_FOUND)
+      if (Taglib_FIND_REQUIRED)
+        message(FATAL_ERROR "Could not find the library containing Taglib")
+      endif (Taglib_FIND_REQUIRED)
+    endif (Taglib_FOUND)
+
+    mark_as_advanced(Taglib_LIBRARIES)
+endif(NOT Taglib_SEARCHED)




More information about the vlc-devel mailing list