summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoudhayan Gupta <me@BaloneyGeek.com>2015-09-05 03:50:26 (GMT)
committerBoudhayan Gupta <me@BaloneyGeek.com>2015-09-05 03:50:26 (GMT)
commit494ac110a52a64aa7b7913fc75bdfc71b27cdad4 (patch)
tree60308a8062a63a5c705f6d829fa902e39fdf3b7f
parent2fc0667f7ec2ed3e386a39cd1abe42c4351e5d46 (diff)
Set library name to libKF5CompactDisc and set VERSION/SOVERSION to 5.0.0
-rw-r--r--CMakeLists.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80bb2d1..414f611 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 2.8.12)
project(libkcompactdisc)
+set(KSCD_VERSION_MAJOR 5)
+set(KSCD_VERSION_MINOR 0)
+set(KSCD_VERSION_PATCH 0)
+set(KSCD_VERSION ${KSCD_VERSION_MAJOR}.${KSCD_VERSION_MINOR}.${KSCD_VERSION_PATCH})
include(FeatureSummary)
find_package(Qt5 REQUIRED COMPONENTS Core)
@@ -82,22 +86,24 @@ if (USE_WMLIB)
add_definitions(-DUSE_WMLIB=1)
endif (USE_WMLIB)
-add_library(kcompactdisc SHARED ${kcompactdisc_LIB_SRCS})
+add_library(KF5CompactDisc SHARED ${kcompactdisc_LIB_SRCS})
+set_target_properties(KF5CompactDisc PROPERTIES VERSION ${KSCD_VERSION} SOVERSION ${KSCD_VERSION_MAJOR} )
-target_link_libraries(kcompactdisc
+
+target_link_libraries(KF5CompactDisc
KF5::KDELibs4Support
Phonon::phonon4qt5 )
if (HAVE_LIBASOUND2)
- target_link_libraries(kcompactdisc ${ASOUND_LIBRARY})
+ target_link_libraries(KF5CompactDisc ${ASOUND_LIBRARY})
endif (HAVE_LIBASOUND2)
if (USE_WMLIB)
find_package(Threads)
- target_link_libraries(kcompactdisc ${CMAKE_THREAD_LIBS_INIT})
+ target_link_libraries(KF5CompactDisc ${CMAKE_THREAD_LIBS_INIT})
endif (USE_WMLIB)
-set_target_properties(kcompactdisc PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
-install(TARGETS kcompactdisc EXPORT LibkcompactdiscTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
+
+install(TARGETS KF5CompactDisc EXPORT LibkcompactdiscTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############