~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/taglib/bindings/c/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
13
)
 
14
 
 
15
 
 
16
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib_c.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib_c.pc )
 
17
########### next target ###############
 
18
 
 
19
SET(tag_c_LIB_SRCS
 
20
tag_c.cpp
 
21
)
 
22
 
 
23
 
 
24
ADD_LIBRARY(tag_c SHARED ${tag_c_LIB_SRCS})
 
25
 
 
26
TARGET_LINK_LIBRARIES(tag_c  tag )
 
27
 
 
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)
 
32
IF(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.
 
39
  #
 
40
  TARGET_LINK_LIBRARIES(tag_c Crun)
 
41
ENDIF(HAVE_CRUN_LIB)
 
42
 
 
43
SET_TARGET_PROPERTIES(tag_c PROPERTIES
 
44
  VERSION 0.0.0
 
45
  SOVERSION 0
 
46
  DEFINE_SYMBOL MAKE_TAGLIB_C_LIB
 
47
  )
 
48
INSTALL(TARGETS tag_c
 
49
        LIBRARY DESTINATION ${LIB_INSTALL_DIR}
 
50
        RUNTIME DESTINATION bin
 
51
        ARCHIVE DESTINATION  ${LIB_INSTALL_DIR}
 
52
)
 
53
 
 
54
 
 
55
########### install files ###############
 
56
 
 
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)
 
59