Don't hardcode lib soname in pc file

svn path=/trunk/kdesupport/qca/; revision=704936
This commit is contained in:
Laurent Montel 2007-08-26 17:05:22 +00:00
parent c6e7d889b4
commit b34c1ce1cd
3 changed files with 9 additions and 2 deletions

View File

@ -12,6 +12,13 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" )
find_package(Qt4 REQUIRED)
SET(QCA_LIB_MAJOR_VERSION "2")
SET(QCA_LIB_MINOR_VERSION "0")
SET(QCA_LIB_PATCH_VERSION "0")
SET(QCA_LIB_VERSION_STRING "${QCA_LIB_MAJOR_VERSION}.${QCA_LIB_MINOR_VERSION}.${QCA_LIB_PATCH_VERSION}")
if (APPLE)
find_package(Carbon REQUIRED)
set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR})

View File

@ -5,7 +5,7 @@ includedir=@CMAKE_INSTALL_PREFIX@/include/QtCrypto
Name: QCA
Description: Qt Cryptographic Architecture library\n
Version: 2.0.0 #maybe this shouldn't be literal...
Version: @QCA_LIB_VERSION_STRING@
Requires: QtCore
Libs: -L${libdir} -lqca
Cflags: -I${includedir}

View File

@ -146,7 +146,7 @@ if(APPLE)
TARGET_LINK_LIBRARIES(qca ${CARBON_LIBRARY} ${CARBON_LIBRARY_SECURITY})
endif(APPLE)
set_target_properties(qca PROPERTIES VERSION 2.0.0 SOVERSION 2 )
set_target_properties(qca PROPERTIES VERSION ${QCA_LIB_MAJOR_VERSION}.${QCA_LIB_MINOR_VERSION}.${QCA_LIB_PATCH_VERSION} SOVERSION ${QCA_LIB_MAJOR_VERSION} )
INSTALL(TARGETS qca DESTINATION ${LIB_INSTALL_DIR})