1
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../../taglib
2
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/toolkit
3
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/mpeg
4
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/ogg
5
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/ogg/vorbis
6
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/ogg/flac
7
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/flac
8
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/mpc
9
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/mpeg/id3v2
10
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/wavpack
11
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/ogg/speex
12
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/trueaudio
16
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc )
17
########### next target ###############
24
ADD_LIBRARY(tag_c SHARED ${tag_c_LIB_SRCS})
26
TARGET_LINK_LIBRARIES(tag_c tag )
28
# On Solaris we need to explicitly add the C++ standard and runtime
29
# libraries to the libs used by this library, to link them to apps
30
# using these bindings.
31
CHECK_LIBRARY_EXISTS(Crun __RTTI___ "" HAVE_CRUN_LIB)
33
# Which libraries to link depends critically on which
34
# STL version is going to be used by your application
35
# and which runtime is in use. While Crun is pretty much
36
# the only game in town, the three available STLs -- Cstd,
37
# stlport4 and stdcxx -- make this a mess. We really only
38
# support stdcxx, but won't force the issue here.
40
TARGET_LINK_LIBRARIES(tag_c Crun)
43
SET_TARGET_PROPERTIES(tag_c PROPERTIES
46
DEFINE_SYMBOL MAKE_TAGLIB_C_LIB
49
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
50
RUNTIME DESTINATION bin
51
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
55
########### install files ###############
57
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
58
INSTALL( FILES tag_c.h DESTINATION ${INCLUDE_INSTALL_DIR}/taglib)