summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <luigi.toscano@tiscali.it>2016-12-12 00:52:01 (GMT)
committerLuigi Toscano <luigi.toscano@tiscali.it>2016-12-12 00:52:01 (GMT)
commitb72ca04323f904aa60a10467734326babec3acac (patch)
tree364b565ae172e2cfff071358f641a8166ee99b3b
parent3c56cb0a133f61a6cfbb034ab3eb483783c33740 (diff)
Do not follow KDE Application for the library versionv16.12.0
5.0.0 is a more proper version number for a library. Starting with 16.08 (which actually should be 16.12) makes it impossible to come back to a lower version later. Also, retrieve the information about libkcompactdisc like any other non-Frameworks library. CCMAIL: xiangzhai83@gmail.com
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 292a6ff..178e816 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,6 @@ find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
I18n
DocTools
KIO
- CompactDisc
)
find_package(KF5Cddb)
set_package_properties(KF5Cddb PROPERTIES
@@ -26,6 +25,13 @@ set_package_properties(KF5Cddb PROPERTIES
TYPE REQUIRED
PURPOSE "libkcddb is used to retrieve audio CD meta data from the internet."
)
+find_package(KF5CompactDisc)
+set_package_properties(KF5CompactDisc PROPERTIES
+ DESCRIPTION "KCompactDisc library"
+ URL "https://commits.kde.org/libkcompactdisc"
+ TYPE REQUIRED
+ PURPOSE "libkcompactdisc is used to access CD drives."
+)
include(KDEInstallDirs)
include(KDECompilerSettings)
@@ -35,11 +41,11 @@ include(ECMSetupVersion)
include(CMakePushCheckState)
include(CheckStructHasMember)
-ecm_setup_version(${PROJECT_VERSION}
+ecm_setup_version("5.0.0"
VARIABLE_PREFIX AUDIOCDPLUGINS
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/audiocdplugins_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/AudioCDPluginsConfigVersion.cmake"
- SOVERSION 16
+ SOVERSION 5
)
find_package(Cdparanoia REQUIRED)