]> granicus.if.org Git - taglib/commitdiff
Don't hardcode version number
authorLaurent Montel <montel@kde.org>
Mon, 27 Aug 2007 07:02:29 +0000 (07:02 +0000)
committerLaurent Montel <montel@kde.org>
Mon, 27 Aug 2007 07:02:29 +0000 (07:02 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@705090 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

CMakeLists.txt
taglib.pc.cmake
taglib/CMakeLists.txt

index cc709d1c74fa7f13bc2f9ff3fce92c4e7d037b4e..976006b8e3811b01c7b243e090fa86c23ecafec9 100644 (file)
@@ -23,6 +23,13 @@ if(MSVC)
   add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE )
 endif(MSVC)
 
+SET(TAGLIB_LIB_MAJOR_VERSION "1")
+SET(TAGLIB_LIB_MINOR_VERSION "4")
+SET(TAGLIB_LIB_PATCH_VERSION "0")
+
+SET(TAGLIB_LIB_VERSION_STRING "${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}")
+
+
 include(ConfigureChecks.cmake)
 
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/taglib-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/taglib-config )
index 6e9b181a54b5b47c9a8751de47526629d792d2b0..909b8fcfc50f79d00a9be295d254d2345de8f0ef 100644 (file)
@@ -6,6 +6,6 @@ includedir=${INCLUDE_INSTALL_DIR}
 Name: TagLib
 Description: Audio meta-data library
 Requires: 
-Version: 1.4
+Version: ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
 Libs: -L${LIB_INSTALL_DIR} -ltag
 Cflags: -I${INCLUDE_INSTALL_DIR}/taglib 
index 8c5f072beab6fceb6c9de6f1f09322e05cd329f4..abbcb1b79556f49b40720682955cd53d52ecec73 100644 (file)
@@ -119,8 +119,8 @@ if(ZLIB_FOUND)
 endif(ZLIB_FOUND)
 
 SET_TARGET_PROPERTIES(tag PROPERTIES
-        VERSION 1.4.0
-        SOVERSION 1
+        VERSION ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
+        SOVERSION ${TAGLIB_LIB_MAJOR_VERSION}
         INSTALL_NAME_DIR ${LIB_INSTALL_DIR}
         DEFINE_SYMBOL MAKE_TAGLIB_LIB
 )