aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2011-04-18 16:50:18 +0200
committerLukáš Lalinský <lalinsky@gmail.com>2011-04-18 16:52:47 +0200
commitd03ef3c3122cec5d08f47be2edb5352460106ac9 (patch)
treeace5fd0b614213f64914ab2286d4c9d953aa8d80
parent4cda0eeb7b4b58ac076b9b174f9a8dff7e717fc0 (diff)
Use the PUBLIC_HEADER property to prepare for building an OS X framework
-rw-r--r--CMakeLists.txt1
-rw-r--r--bindings/c/CMakeLists.txt5
-rw-r--r--taglib/CMakeLists.txt104
-rw-r--r--taglib/ape/CMakeLists.txt1
-rw-r--r--taglib/asf/CMakeLists.txt1
-rw-r--r--taglib/flac/CMakeLists.txt1
-rw-r--r--taglib/mp4/CMakeLists.txt1
-rw-r--r--taglib/mpc/CMakeLists.txt1
-rw-r--r--taglib/mpeg/CMakeLists.txt4
-rw-r--r--taglib/mpeg/id3v1/CMakeLists.txt1
-rw-r--r--taglib/mpeg/id3v2/CMakeLists.txt4
-rw-r--r--taglib/mpeg/id3v2/frames/CMakeLists.txt13
-rw-r--r--taglib/ogg/CMakeLists.txt6
-rw-r--r--taglib/ogg/flac/CMakeLists.txt2
-rw-r--r--taglib/ogg/speex/CMakeLists.txt1
-rw-r--r--taglib/ogg/vorbis/CMakeLists.txt1
-rw-r--r--taglib/riff/CMakeLists.txt4
-rw-r--r--taglib/riff/aiff/CMakeLists.txt1
-rw-r--r--taglib/riff/wav/CMakeLists.txt1
-rw-r--r--taglib/toolkit/CMakeLists.txt1
-rw-r--r--taglib/toolkit/tfile.cpp1
-rw-r--r--taglib/trueaudio/CMakeLists.txt1
-rw-r--r--taglib/wavpack/CMakeLists.txt1
23 files changed, 96 insertions, 61 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 233f05eb..88894c36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,6 @@ if(WITH_MP4)
endif()
configure_file(taglib/taglib_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_config.h)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib_config.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
add_subdirectory(taglib)
add_subdirectory(bindings)
diff --git a/bindings/c/CMakeLists.txt b/bindings/c/CMakeLists.txt
index d1f75234..e9c8843f 100644
--- a/bindings/c/CMakeLists.txt
+++ b/bindings/c/CMakeLists.txt
@@ -18,6 +18,8 @@ include_directories(
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc)
+set(tag_c_HDRS tag_c.h)
+
if(ENABLE_STATIC)
add_library(tag_c STATIC tag_c.cpp)
set_target_properties(tag_c PROPERTIES COMPILE_DEFINITIONS TAGLIB_STATIC)
@@ -26,6 +28,7 @@ else()
endif()
target_link_libraries(tag_c tag)
+set_target_properties(tag_c PROPERTIES PUBLIC_HEADER "${tag_c_HDRS}")
# On Solaris we need to explicitly add the C++ standard and runtime
# libraries to the libs used by the C bindings, because those C bindings
@@ -58,8 +61,8 @@ install(TARGETS tag_c
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR}/taglib
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-install(FILES tag_c.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/CMakeLists.txt b/taglib/CMakeLists.txt
index 53022c0a..bd8effc3 100644
--- a/taglib/CMakeLists.txt
+++ b/taglib/CMakeLists.txt
@@ -25,17 +25,95 @@ if(ZLIB_FOUND)
include_directories(${ZLIB_INCLUDE_DIR})
endif()
-add_subdirectory(toolkit)
-add_subdirectory(asf)
-add_subdirectory(mpeg)
-add_subdirectory(ogg)
-add_subdirectory(flac)
-add_subdirectory(ape)
-add_subdirectory(mpc)
-add_subdirectory(mp4)
-add_subdirectory(wavpack)
-add_subdirectory(trueaudio)
-add_subdirectory(riff)
+set(tag_HDRS
+ tag.h
+ fileref.h
+ audioproperties.h
+ taglib_export.h
+ ${CMAKE_BINARY_DIR}/taglib_config.h
+ toolkit/taglib.h
+ toolkit/tstring.h
+ toolkit/tlist.h
+ toolkit/tlist.tcc
+ toolkit/tstringlist.h
+ toolkit/tbytevector.h
+ toolkit/tbytevectorlist.h
+ toolkit/tfile.h
+ toolkit/tmap.h
+ toolkit/tmap.tcc
+ mpeg/mpegfile.h
+ mpeg/mpegproperties.h
+ mpeg/mpegheader.h
+ mpeg/xingheader.h
+ mpeg/id3v1/id3v1tag.h
+ mpeg/id3v1/id3v1genres.h
+ mpeg/id3v2/id3v2extendedheader.h
+ mpeg/id3v2/id3v2frame.h
+ mpeg/id3v2/id3v2header.h
+ mpeg/id3v2/id3v2synchdata.h
+ mpeg/id3v2/id3v2footer.h
+ mpeg/id3v2/id3v2framefactory.h
+ mpeg/id3v2/id3v2tag.h
+ mpeg/id3v2/frames/attachedpictureframe.h
+ mpeg/id3v2/frames/commentsframe.h
+ mpeg/id3v2/frames/generalencapsulatedobjectframe.h
+ mpeg/id3v2/frames/popularimeterframe.h
+ mpeg/id3v2/frames/privateframe.h
+ mpeg/id3v2/frames/relativevolumeframe.h
+ mpeg/id3v2/frames/textidentificationframe.h
+ mpeg/id3v2/frames/uniquefileidentifierframe.h
+ mpeg/id3v2/frames/unknownframe.h
+ mpeg/id3v2/frames/unsynchronizedlyricsframe.h
+ mpeg/id3v2/frames/urllinkframe.h
+ ogg/oggfile.h
+ ogg/oggpage.h
+ ogg/oggpageheader.h
+ ogg/xiphcomment.h
+ ogg/vorbis/vorbisfile.h
+ ogg/vorbis/vorbisproperties.h
+ ogg/flac/oggflacfile.h
+ ogg/speex/speexfile.h
+ ogg/speex/speexproperties.h
+ flac/flacfile.h
+ flac/flacpicture.h
+ flac/flacproperties.h
+ flac/flacmetadatablock.h
+ ape/apefile.h
+ ape/apeproperties.h
+ ape/apetag.h
+ ape/apefooter.h
+ ape/apeitem.h
+ mpc/mpcfile.h
+ mpc/mpcproperties.h
+ wavpack/wavpackfile.h
+ wavpack/wavpackproperties.h
+ trueaudio/trueaudiofile.h
+ trueaudio/trueaudioproperties.h
+ riff/rifffile.h
+ riff/aiff/aifffile.h
+ riff/aiff/aiffproperties.h
+ riff/wav/wavfile.h
+ riff/wav/wavproperties.h
+)
+if(WITH_ASF)
+ set(tag_HDRS ${tag_HDRS}
+ asf/asffile.h
+ asf/asfproperties.h
+ asf/asftag.h
+ asf/asfattribute.h
+ asf/asfpicture.h
+ )
+endif()
+if(WITH_MP4)
+ set(tag_HDRS ${tag_HDRS}
+ mp4/mp4file.h
+ mp4/mp4atom.h
+ mp4/mp4tag.h
+ mp4/mp4item.h
+ mp4/mp4properties.h
+ mp4/mp4coverart.h
+ )
+endif()
set(mpeg_SRCS
mpeg/mpegfile.cpp
@@ -199,13 +277,13 @@ set_target_properties(tag PROPERTIES
INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
DEFINE_SYMBOL MAKE_TAGLIB_LIB
LINK_INTERFACE_LIBRARIES ""
+ PUBLIC_HEADER "${tag_HDRS}"
)
install(TARGETS tag
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR}/taglib
)
-install(FILES tag.h fileref.h audioproperties.h taglib_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
-
diff --git a/taglib/ape/CMakeLists.txt b/taglib/ape/CMakeLists.txt
deleted file mode 100644
index 1a3c2093..00000000
--- a/taglib/ape/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES apefile.h apeproperties.h apetag.h apefooter.h apeitem.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/asf/CMakeLists.txt b/taglib/asf/CMakeLists.txt
deleted file mode 100644
index 2855beca..00000000
--- a/taglib/asf/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES asffile.h asfproperties.h asftag.h asfattribute.h asfpicture.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/flac/CMakeLists.txt b/taglib/flac/CMakeLists.txt
deleted file mode 100644
index 588208f9..00000000
--- a/taglib/flac/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES flacfile.h flacpicture.h flacproperties.h flacmetadatablock.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib )
diff --git a/taglib/mp4/CMakeLists.txt b/taglib/mp4/CMakeLists.txt
deleted file mode 100644
index 993a5c0b..00000000
--- a/taglib/mp4/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES mp4file.h mp4atom.h mp4tag.h mp4item.h mp4properties.h mp4coverart.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/mpc/CMakeLists.txt b/taglib/mpc/CMakeLists.txt
deleted file mode 100644
index 238c9cb1..00000000
--- a/taglib/mpc/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES mpcfile.h mpcproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/mpeg/CMakeLists.txt b/taglib/mpeg/CMakeLists.txt
deleted file mode 100644
index 9b0e3086..00000000
--- a/taglib/mpeg/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-ADD_SUBDIRECTORY( id3v1 )
-ADD_SUBDIRECTORY( id3v2 )
-
-INSTALL(FILES mpegfile.h mpegproperties.h mpegheader.h xingheader.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib )
diff --git a/taglib/mpeg/id3v1/CMakeLists.txt b/taglib/mpeg/id3v1/CMakeLists.txt
deleted file mode 100644
index 64b21ec8..00000000
--- a/taglib/mpeg/id3v1/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES id3v1tag.h id3v1genres.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/mpeg/id3v2/CMakeLists.txt b/taglib/mpeg/id3v2/CMakeLists.txt
deleted file mode 100644
index f6e1ef13..00000000
--- a/taglib/mpeg/id3v2/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-ADD_SUBDIRECTORY( frames )
-
-INSTALL(FILES id3v2extendedheader.h id3v2frame.h id3v2header.h id3v2synchdata.h id3v2footer.h id3v2framefactory.h id3v2tag.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
-
diff --git a/taglib/mpeg/id3v2/frames/CMakeLists.txt b/taglib/mpeg/id3v2/frames/CMakeLists.txt
deleted file mode 100644
index 6636ddec..00000000
--- a/taglib/mpeg/id3v2/frames/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-INSTALL(FILES
- attachedpictureframe.h
- commentsframe.h
- generalencapsulatedobjectframe.h
- popularimeterframe.h
- privateframe.h
- relativevolumeframe.h
- textidentificationframe.h
- uniquefileidentifierframe.h
- unknownframe.h
- unsynchronizedlyricsframe.h
- urllinkframe.h
- DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/ogg/CMakeLists.txt b/taglib/ogg/CMakeLists.txt
deleted file mode 100644
index d506a3cd..00000000
--- a/taglib/ogg/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-ADD_SUBDIRECTORY( vorbis )
-ADD_SUBDIRECTORY( speex )
-ADD_SUBDIRECTORY( flac )
-
-INSTALL( FILES oggfile.h oggpage.h oggpageheader.h xiphcomment.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib )
-
diff --git a/taglib/ogg/flac/CMakeLists.txt b/taglib/ogg/flac/CMakeLists.txt
deleted file mode 100644
index 6e7d9a81..00000000
--- a/taglib/ogg/flac/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-INSTALL( FILES oggflacfile.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
-
diff --git a/taglib/ogg/speex/CMakeLists.txt b/taglib/ogg/speex/CMakeLists.txt
deleted file mode 100644
index 7f35b71f..00000000
--- a/taglib/ogg/speex/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES speexfile.h speexproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/ogg/vorbis/CMakeLists.txt b/taglib/ogg/vorbis/CMakeLists.txt
deleted file mode 100644
index 7033e132..00000000
--- a/taglib/ogg/vorbis/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES vorbisfile.h vorbisproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/riff/CMakeLists.txt b/taglib/riff/CMakeLists.txt
deleted file mode 100644
index f691ee41..00000000
--- a/taglib/riff/CMakeLists.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-ADD_SUBDIRECTORY( aiff )
-ADD_SUBDIRECTORY( wav )
-
-INSTALL( FILES rifffile.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/riff/aiff/CMakeLists.txt b/taglib/riff/aiff/CMakeLists.txt
deleted file mode 100644
index 7e8cdd66..00000000
--- a/taglib/riff/aiff/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES aifffile.h aiffproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/riff/wav/CMakeLists.txt b/taglib/riff/wav/CMakeLists.txt
deleted file mode 100644
index c011579c..00000000
--- a/taglib/riff/wav/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES wavfile.h wavproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/toolkit/CMakeLists.txt b/taglib/toolkit/CMakeLists.txt
deleted file mode 100644
index 2e39d31f..00000000
--- a/taglib/toolkit/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES taglib.h tstring.h tlist.h tlist.tcc tstringlist.h tbytevector.h tbytevectorlist.h tfile.h tmap.h tmap.tcc DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/toolkit/tfile.cpp b/taglib/toolkit/tfile.cpp
index 946d7ea2..93879f10 100644
--- a/taglib/toolkit/tfile.cpp
+++ b/taglib/toolkit/tfile.cpp
@@ -564,3 +564,4 @@ TagLib::uint File::bufferSize()
{
return FilePrivate::bufferSize;
}
+
diff --git a/taglib/trueaudio/CMakeLists.txt b/taglib/trueaudio/CMakeLists.txt
deleted file mode 100644
index 3a1c3e7b..00000000
--- a/taglib/trueaudio/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES trueaudiofile.h trueaudioproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)
diff --git a/taglib/wavpack/CMakeLists.txt b/taglib/wavpack/CMakeLists.txt
deleted file mode 100644
index 8b9de0fd..00000000
--- a/taglib/wavpack/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-INSTALL( FILES wavpackfile.h wavpackproperties.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)