[vlc-devel] commit: cmake: Detect taglib. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Apr 19 04:34:44 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Apr 19 04:35:03 2008 +0200| [4c9c58adeed94ea5e308cb6e40980319c8ca162d]

cmake: Detect taglib.

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

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

diff --git a/extras/buildsystem/cmake/include/config.cmake b/extras/buildsystem/cmake/include/config.cmake
index a96a6ca..cc671ee 100644
--- a/extras/buildsystem/cmake/include/config.cmake
+++ b/extras/buildsystem/cmake/include/config.cmake
@@ -600,6 +600,19 @@ if(HAVE_ID3TAG_H AND HAVE_ZLIB_H)
   vlc_module_add_link_libraries(id3tag  "id3tag;z")
 endif(HAVE_ID3TAG_H AND HAVE_ZLIB_H)
 
+find_package(Taglib)
+if(Taglib_FOUND)
+  set(HAVE_TAGLIB 1)
+  vlc_enable_modules(taglib)
+  vlc_module_add_link_libraries(taglib "${Taglib_LIBRARIES};z")
+  vlc_add_module_compile_flag(taglib "${Taglib_CFLAGS}")
+endif(Taglib_FOUND)
+
+vlc_check_include_files (zlib.h)
+if(HAVE_ZLIB_H)
+  vlc_module_add_link_libraries(access_http z)
+endif(HAVE_ZLIB_H)
+
 set(CMAKE_REQUIRED_INCLUDES)
 
 ###########################################################




More information about the vlc-devel mailing list