Remove erroneous assert which I added earlier.
[ardour2.git] / libs / taglib / CMakeLists.txt
blob436627e0a62c8b62336dbe12c21a828934a83ce0
1 project(taglib)
3 OPTION(BUILD_TESTS "Build the test suite"  OFF)
4 OPTION(BUILD_EXAMPLES "Build the examples"  OFF)
6 OPTION(NO_ITUNES_HACKS "Disable workarounds for iTunes bugs"  OFF)
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)
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)
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)
30 SET(TAGLIB_LIB_MAJOR_VERSION "1")
31 SET(TAGLIB_LIB_MINOR_VERSION "5")
32 SET(TAGLIB_LIB_PATCH_VERSION "0")
34 SET(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}")
37 include(ConfigureChecks.cmake)
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 )
42 configure_file(config-taglib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
44 ADD_SUBDIRECTORY( taglib ) 
46 ADD_SUBDIRECTORY(tests)
47 ADD_SUBDIRECTORY(examples)
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)
54 INSTALL( PROGRAMS  ${CMAKE_CURRENT_BINARY_DIR}/taglib-config DESTINATION ${BIN_INSTALL_DIR})