generic: remove compat build variables

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-17 23:16:41 +03:00
parent 5613e5483c
commit 0bc7fcfbf9
8 changed files with 11 additions and 62 deletions

View file

@ -403,7 +403,7 @@ set(KDE4_KDECORE_INCLUDES
${CMAKE_SOURCE_DIR}/kdecore/util ${CMAKE_SOURCE_DIR}/kdecore/util
${CMAKE_BINARY_DIR}/kdecore ${CMAKE_BINARY_DIR}/kdecore
${QT_INCLUDES} ${QT_INCLUDES}
${_KDE4_PLATFORM_INCLUDE_DIRS} ${X11_INCLUDE_DIR}
) )
# kdeui depends on kdecore # kdeui depends on kdecore

View file

@ -39,27 +39,6 @@
# KDE4_KCFGC_EXECUTABLE - the kconfig_compiler executable # KDE4_KCFGC_EXECUTABLE - the kconfig_compiler executable
# KDE4_MAKEKDEWIDGETS_EXECUTABLE - the makekdewidgets executable # KDE4_MAKEKDEWIDGETS_EXECUTABLE - the makekdewidgets executable
# #
# The following variables contain all of the depending libraries:
#
# KDE4_KDECORE_LIBS - the kdecore library and all depending libraries
# KDE4_KDEUI_LIBS - the kdeui library and all depending libraries
# KDE4_KIO_LIBS - the kio library and all depending libraries
# KDE4_KPARTS_LIBS - the kparts library and all depending libraries
# KDE4_KIDLETIME_LIBS - the kidletime library and all depending libraries
# KDE4_KCMUTILS_LIBS - the kcmutils library and all depending libraries
# KDE4_KFILE_LIBS - the kfile library and all depending libraries
# KDE4_KPTY_LIBS - the kpty library and all depending libraries
# KDE4_SOLID_LIBS - the solid library and all depending libraries
# KDE4_KNOTIFYCONFIG_LIBS - the knotify config library and all depending libraries
# KDE4_KTEXTEDITOR_LIBS - the ktexteditor library and all depending libraries
# KDE4_PLASMA_LIBS - the plasma library and all depending librairies
# KDE4_KEXIV2_LIBS - the kexiv2 library and all depending libraries
# KDE4_KMEDIAPLAYER_LIBS - the kmediaplayer library and all depending libraries
# KDE4_KPASSWDSTORE_LIBS - the kpasswdstore library and all depending libraries
# KDE4_KPOWERMANAGER_LIBS - the kpowermanager library and all depending libraries
# KDE4_KDNSSD_LIBS - the kdnssd library and all depending libraries
# KDE4_KARCHIVE_LIBS - the karchive library and all depending libraries
#
# This module allows to depend on a particular minimum version of kdelibs. # This module allows to depend on a particular minimum version of kdelibs.
# To acomplish that one should use the appropriate cmake syntax for # To acomplish that one should use the appropriate cmake syntax for
# find_package. For example to depend on kdelibs >= 4.23.0 one should use # find_package. For example to depend on kdelibs >= 4.23.0 one should use
@ -163,43 +142,13 @@ if(NOT KDELIBS4_FOUND)
set(KDE4_KCFGC_EXECUTABLE ${KDE4_TARGET_PREFIX}kconfig_compiler) set(KDE4_KCFGC_EXECUTABLE ${KDE4_TARGET_PREFIX}kconfig_compiler)
set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${KDE4_TARGET_PREFIX}makekdewidgets) set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${KDE4_TARGET_PREFIX}makekdewidgets)
set(_kde_libraries
kmediaplayer
kcmutils
kdeclarative
kdecore
kdeui
kexiv2
kpasswdstore
kpowermanager
kdnssd
karchive
kemail
kfile
kidletime
kio
knotifyconfig
kparts
kpty
ktexteditor
plasma
solid
)
foreach(_lib ${_kde_libraries})
string(TOUPPER ${_lib} _upperlib)
set(KDE4_${_upperlib}_LIBS ${KDE4_TARGET_PREFIX}${_lib})
endforeach()
# This file contains the exported library target from kdelibs (new with cmake 2.6.x), e.g. # This file contains the exported library target from kdelibs (new with cmake 2.6.x), e.g.
# the library target "kdeui" is exported as "KDE4::kdeui". The "KDE4::" is used as # the library target "kdeui" is exported as "KDE4::kdeui". The "KDE4::" is used as
# "namespace" to separate the imported targets from "normal" targets, it is stored in # "namespace" to separate the imported targets from "normal" targets, it is stored in
# KDE4_TARGET_PREFIX, which is set in KDELibsDependencies.cmake . # KDE4_TARGET_PREFIX.
# This export-file is generated and installed by the toplevel CMakeLists.txt of kdelibs. # This export-file is generated and installed by the toplevel CMakeLists.txt of kdelibs.
# Include it to "import" the libraries from kdelibs into the current projects as targets. # Include it to "import" the libraries from kdelibs into the current projects as targets.
# This makes setting the _LIBS variables actually a bit superfluos, since e.g. the kdeui
# library could now also be used just as "KDE4::kdeui" and still have all their dependent
# libraries handled correctly. But to keep compatibility and not to change behaviour we
# set all these variables anyway as seen below. Alex
include(${kdelibs4_config_dir}/KDELibs4LibraryTargets.cmake) include(${kdelibs4_config_dir}/KDELibs4LibraryTargets.cmake)
# KDE4Macros.cmake contains all the KDE specific macros # KDE4Macros.cmake contains all the KDE specific macros

View file

@ -10,9 +10,9 @@ add_definitions(${QT_DEFINITIONS} ${KDE_DEFINITIONS})
set(hello_SRCS main.cc ) set(hello_SRCS main.cc )
add_executable(tetest ${hello_SRCS}) add_executable(tetest ${hello_SRCS})
target_link_libraries(tetest target_link_libraries(tetest
${KDE4_KDECORE_LIBS} KDE4::kdecore
${KDE4_KDEUI_LIBS} KDE4::kdeui
${KDE4_KPARTS_LIBS} KDE4::kparts
) )
########### install files ############### ########### install files ###############

View file

@ -11,7 +11,7 @@ set(krichtexteditorSources
) )
add_executable(krichtexteditor ${krichtexteditorSources}) add_executable(krichtexteditor ${krichtexteditorSources})
target_link_libraries(krichtexteditor ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS}) target_link_libraries(krichtexteditor KDE4::kdeui KDE4::kio)
install(TARGETS krichtexteditor DESTINATION ${KDE4_BIN_INSTALL_DIR}) install(TARGETS krichtexteditor DESTINATION ${KDE4_BIN_INSTALL_DIR})
install(FILES krichtexteditorui.rc DESTINATION ${KDE4_DATA_INSTALL_DIR}/krichtexteditor) install(FILES krichtexteditorui.rc DESTINATION ${KDE4_DATA_INSTALL_DIR}/krichtexteditor)

View file

@ -69,7 +69,7 @@ class KFileItemListProperties;
* *
* \code * \code
* kde4_add_plugin(myactionplugin myactionplugin.cpp) * kde4_add_plugin(myactionplugin myactionplugin.cpp)
* target_link_libraries(myactionplugin ${KDE4_KIO_LIBS}) * target_link_libraries(myactionplugin KDE4::kio)
* install(TARGETS myactionplugin DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) * install(TARGETS myactionplugin DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
* install(FILES myactionplugin.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) * install(FILES myactionplugin.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
* \endcode * \endcode

View file

@ -60,7 +60,7 @@
* *
* *
* kde4_add_plugin(filetypethumbnail ${filetypethumbnail_SRCS}) * kde4_add_plugin(filetypethumbnail ${filetypethumbnail_SRCS})
* target_link_libraries(filetypethumbnail ${KDE4_KIO_LIBS}) * target_link_libraries(filetypethumbnail KDE4::kio)
* *
* install(TARGETS filetypethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) * install(TARGETS filetypethumbnail DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
* install(FILES filetypethumbcreator.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) * install(FILES filetypethumbcreator.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -9,7 +9,7 @@ include_directories(
) )
kde4_add_plugin(plasma_containmentactions_test test.cpp) kde4_add_plugin(plasma_containmentactions_test test.cpp)
target_link_libraries(plasma_containmentactions_test ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS}) target_link_libraries(plasma_containmentactions_test KDE4::plasma KDE4::kio)
install(TARGETS plasma_containmentactions_test DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_containmentactions_test DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-containmentactions-test.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}) install(FILES plasma-containmentactions-test.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -11,8 +11,8 @@ include_directories(
kde4_add_plugin(plasma_engine_testengine testengine.cpp) kde4_add_plugin(plasma_engine_testengine testengine.cpp)
target_link_libraries(plasma_engine_testengine target_link_libraries(plasma_engine_testengine
${KDE4_KIO_LIBS} KDE4::kio
${KDE4_PLASMA_LIBS} KDE4::plasma
) )
install(TARGETS plasma_engine_testengine DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}) install(TARGETS plasma_engine_testengine DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})