]> git.sesse.net Git - vlc/commitdiff
cmake: Detect libid3tag.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Apr 2008 02:20:38 +0000 (04:20 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Apr 2008 02:20:38 +0000 (04:20 +0200)
extras/buildsystem/cmake/include/config.cmake

index 64f2f69b475b06c9892f3e1a6be4c97099d4a4f4..a96a6caebc0d0e7faf0bc081a92ea1d723117d48 100644 (file)
@@ -594,6 +594,12 @@ if(Dvbpsi_FOUND)
   vlc_module_add_link_libraries(dvb     ${Dvbpsi_LIBRARIES})
 endif(Dvbpsi_FOUND)
 
+vlc_check_include_files (id3tag.h zlib.h)
+if(HAVE_ID3TAG_H AND HAVE_ZLIB_H)
+  vlc_enable_modules(id3tag)
+  vlc_module_add_link_libraries(id3tag  "id3tag;z")
+endif(HAVE_ID3TAG_H AND HAVE_ZLIB_H)
+
 set(CMAKE_REQUIRED_INCLUDES)
 
 ###########################################################