~njh-aelius/maxosx/musicbrainz-tags

« back to all changes in this revision

Viewing changes to Frameworks/taglib/taglib/CMakeLists.txt

  • Committer: stephen_booth
  • Date: 2008-04-30 02:09:12 UTC
  • Revision ID: svn-v4:6b6cea13-1402-0410-9567-a7afb52bf336:trunk:1372
Update to latest taglib SVN

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(taglib)
 
2
 
 
3
OPTION(BUILD_TESTS "Build the test suite"  OFF)
 
4
OPTION(BUILD_EXAMPLES "Build the examples"  OFF)
 
5
 
 
6
OPTION(NO_ITUNES_HACKS "Disable workarounds for iTunes bugs"  OFF)
 
7
 
 
8
#add some KDE specific stuff
 
9
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
 
10
set(EXEC_INSTALL_PREFIX  ${CMAKE_INSTALL_PREFIX}       CACHE PATH  "Base directory for executables and libraries" FORCE)
 
11
#
 
12
## the following are directories where stuff will be installed to
 
13
set(BIN_INSTALL_DIR          "${EXEC_INSTALL_PREFIX}/bin"                  CACHE PATH "The kde info install dir (default prefix/info)" FORCE)
 
14
set(LIB_INSTALL_DIR          "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}"     CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
 
15
set(INCLUDE_INSTALL_DIR      "${CMAKE_INSTALL_PREFIX}/include"             CACHE PATH "The subdirectory to the header prefix" FORCE)
 
16
 
 
17
if (CMAKE_COMPILER_IS_GNUCXX)
 
18
   if (CMAKE_SYSTEM_NAME MATCHES Linux)
 
19
     set ( CMAKE_C_FLAGS     "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
 
20
     set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common")
 
21
   endif (CMAKE_SYSTEM_NAME MATCHES Linux)
 
22
endif (CMAKE_COMPILER_IS_GNUCXX)
 
23
if(MSVC)
 
24
  add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE )
 
25
endif(MSVC)
 
26
if (WIN32)
 
27
  set(CMAKE_DEBUG_POSTFIX "d")
 
28
endif (WIN32)
 
29
 
 
30
SET(TAGLIB_LIB_MAJOR_VERSION "1")
 
31
SET(TAGLIB_LIB_MINOR_VERSION "5")
 
32
SET(TAGLIB_LIB_PATCH_VERSION "0")
 
33
 
 
34
SET(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}")
 
35
 
 
36
 
 
37
include(ConfigureChecks.cmake)
 
38
 
 
39
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib-config )
 
40
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc )
 
41
 
 
42
configure_file(config-taglib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
 
43
 
 
44
ADD_SUBDIRECTORY( taglib ) 
 
45
 
 
46
ADD_SUBDIRECTORY(tests)
 
47
ADD_SUBDIRECTORY(examples)
 
48
 
 
49
ADD_SUBDIRECTORY(bindings)
 
50
if(NOT WIN32)
 
51
  INSTALL( FILES  ${CMAKE_CURRENT_BINARY_DIR}/taglib.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
 
52
endif(NOT WIN32)
 
53
 
 
54
INSTALL( PROGRAMS  ${CMAKE_CURRENT_BINARY_DIR}/taglib-config DESTINATION ${BIN_INSTALL_DIR})
 
55
 
 
56