Commit 9cf1978b authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Bump the so/version and allow co-installability

parent 6eb0209c
......@@ -8,12 +8,19 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_D
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMOptionalAddSubdirectory)
include(ECMSetupVersion)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt5 5.4 CONFIG REQUIRED Core Gui)
ecm_setup_version("2.0.0"
VARIABLE_PREFIX QMOBIPOCKET
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/QMobipocketConfigVersion.cmake"
SOVERSION "2"
)
add_subdirectory(lib)
ecm_optional_add_subdirectory(thumbnailers)
......@@ -27,8 +34,11 @@ if(STRIGI_STREAMS_LIBRARY)
ecm_optional_add_subdirectory(strigi)
endif()
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/QMobipocketConfig.cmake
DESTINATION ${LIB_INSTALL_DIR}/cmake/QMobipocket )
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/QMobipocketConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/QMobipocketConfigVersion.cmake
DESTINATION ${LIB_INSTALL_DIR}/cmake/QMobipocket
)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -21,4 +21,4 @@ install(FILES
)
install(TARGETS qmobipocket ${INSTALL_TARGETS_DEFAULT_ARGS})
set_target_properties(qmobipocket PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(qmobipocket PROPERTIES VERSION ${QMOBIPOCKET_VERSION} SOVERSION ${QMOBIPOCKET_SOVERSION})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment