diff --git a/cmake/modules/FindKDE4Internal.cmake b/cmake/modules/FindKDE4Internal.cmake index 8254157f..f8665fda 100644 --- a/cmake/modules/FindKDE4Internal.cmake +++ b/cmake/modules/FindKDE4Internal.cmake @@ -408,7 +408,6 @@ set(_kde_libraries kdcraw kdeclarative kdecore - kdefakes kdesu kdeui kdewebkit diff --git a/kdecore/CMakeLists.txt b/kdecore/CMakeLists.txt index 62833acf..2ebba428 100644 --- a/kdecore/CMakeLists.txt +++ b/kdecore/CMakeLists.txt @@ -133,23 +133,6 @@ add_subdirectory(network/kssld) ########### next target ############### -add_library(kdefakes ${LIBRARY_TYPE} fakes.c) -set_target_properties(kdefakes PROPERTIES - VERSION ${KDE_NON_GENERIC_LIB_VERSION} - SOVERSION ${KDE_NON_GENERIC_LIB_SOVERSION} -) -if(NOT HAVE_TRUNC) - target_link_libraries(kdefakes m ) -endif() - -install( - TARGETS kdefakes - EXPORT kdelibsLibraryTargets - ${INSTALL_TARGETS_DEFAULT_ARGS} -) - -########### next target ############### - set(kdecore_LIB_SRCS compression/kgzipfilter.cpp compression/kfilterbase.cpp @@ -295,7 +278,7 @@ set(kdecore_LIB_SRCS util/kshell_unix.cpp util/kuser_unix.cpp util/kmacroexpander_unix.cpp - fakes.c + fakes.cpp ${kdecore_OPTIONAL_SRCS} ${KAUTH_BACKEND_SRCS} @@ -322,6 +305,10 @@ if(FAM_FOUND) target_link_libraries(kdecore PRIVATE ${FAM_LIBRARIES}) endif(FAM_FOUND) +if(NOT HAVE_TRUNC) + target_link_libraries(kdecore PRIVATE m) +endif() + target_link_libraries(kdecore PUBLIC ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} @@ -379,9 +366,6 @@ target_link_libraries(kde4-config ${KDE4_KDECORE_LIBS}) install(TARGETS kde4-config ${INSTALL_TARGETS_DEFAULT_ARGS}) - -########### next target ############### - ########### install files ############### install( diff --git a/kdecore/fakes.c b/kdecore/fakes.cpp similarity index 100% rename from kdecore/fakes.c rename to kdecore/fakes.cpp diff --git a/kdemacros.h.cmake b/kdemacros.h.cmake index 31026bf6..7e2a815d 100644 --- a/kdemacros.h.cmake +++ b/kdemacros.h.cmake @@ -28,6 +28,8 @@ #ifndef _KDE_MACROS_H_ #define _KDE_MACROS_H_ +#include + #cmakedefine __KDE_HAVE_GCC_VISIBILITY /** @@ -139,15 +141,8 @@ * use KDE_CONSTRUCTOR_DEPRECATED instead. */ -#ifdef __cplusplus -# include -# ifndef KDE_DEPRECATED -# ifdef KDE_DEPRECATED_WARNINGS -# define KDE_DEPRECATED Q_DECL_DEPRECATED -# else -# define KDE_DEPRECATED -# endif -# endif +#ifndef KDE_DEPRECATED +# define KDE_DEPRECATED Q_DECL_DEPRECATED #endif /**