Commit da9a92ac authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Add library versions.

Version internal libraries by generic attributes.

BUG: 332179
parent e588129f
......@@ -23,7 +23,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
###
set( learnerprofile_LIB_SRCS
set(learnerprofile_LIB_SRCS
learner.cpp
learninggoal.cpp
profilemanager.cpp
......@@ -32,14 +32,24 @@ set( learnerprofile_LIB_SRCS
models/learninggoalmodel.cpp
)
kde4_add_library( learnerprofile SHARED ${learnerprofile_LIB_SRCS} )
kde4_add_library(artikulatelearnerprofile SHARED ${learnerprofile_LIB_SRCS})
target_link_libraries(
learnerprofile
artikulatelearnerprofile
LINK_PRIVATE
${KDE4_KDECORE_LIBS}
${KDE4_KFILE_LIBS}
${QT_QTSQL_LIBRARY}
)
install( TARGETS learnerprofile ${INSTALL_TARGETS_DEFAULT_ARGS} )
set_target_properties(
artikulatelearnerprofile
PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(
TARGETS artikulatelearnerprofile
${INSTALL_TARGETS_DEFAULT_ARGS}
)
......@@ -95,7 +95,7 @@ set(
set(
artikulateTargetLibs
artikulatecore
learnerprofile
artikulatelearnerprofile
${KDECLARATIVE_LIBRARIES}
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS}
......@@ -151,10 +151,19 @@ kde4_add_kcfg_files(artikulateCore_SRCS settings.kcfgc)
kde4_add_library(artikulatecore SHARED ${artikulateCore_SRCS})
target_link_libraries(artikulatecore
LINK_PRIVATE
learnerprofile
artikulatelearnerprofile
${artikulateCoreTargetLibs}
)
install(TARGETS artikulatecore ${INSTALL_TARGETS_DEFAULT_ARGS})
set_target_properties(
artikulatecore
PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(
TARGETS artikulatecore
DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS}
)
install( FILES artikulate.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
# set the source code files from which Artikulate is compiled
......@@ -193,7 +202,7 @@ kde4_add_kcfg_files(artikulate_SRCS settings.kcfgc)
kde4_add_executable(artikulate ${artikulate_SRCS})
target_link_libraries(artikulate
LINK_PRIVATE
learnerprofile
artikulatelearnerprofile
${artikulateTargetLibs}
)
......
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