Warning, /frameworks/kdelibs4support/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_subdirectory(includes)
0002 add_subdirectory(kdebugdialog)
0003 add_subdirectory(solid-networkstatus)
0004 add_subdirectory(l10n)
0005 if(NOT HAVE_NEPOMUK)
0006    set(KIO_NO_NEPOMUK TRUE)
0007 endif()
0008 
0009 if(NOT Strigi_FOUND)
0010     set(KIO_NO_STRIGI TRUE)
0011 else()
0012     include_directories(${STRIGI_INCLUDE_DIR} ${STRIGI_INCLUDE_DIRS} ${LIBSTREAMANALYZER_INCLUDE_DIRS})
0013     add_subdirectory( kio/dummyanalyzers )
0014     set(KIO_EXTRA_LIBS ${KIO_EXTRA_LIBS} ${STRIGI_STREAMANALYZER_LIBRARY} ${STRIGI_STREAMS_LIBRARY})
0015 endif()
0016 
0017 if(NOT KIO_NO_NEPOMUK)
0018     include_directories(
0019        ${SOPRANO_INCLUDE_DIR}
0020     )
0021 endif()
0022 
0023 
0024 find_package(OpenSSL)
0025 set_package_properties(OpenSSL PROPERTIES DESCRIPTION "Support for secure network communications (SSL and TLS)"
0026                        URL "http://openssl.org"
0027                        TYPE RECOMMENDED
0028                        PURPOSE "KDE uses OpenSSL for the bulk of secure communications, including secure web browsing via HTTPS"
0029                       )
0030 if(OPENSSL_FOUND)
0031    set(KSSL_HAVE_SSL 1)
0032    # on Windows include directories specified by target KDEWin and used by KF5KDELibs4Support
0033    # needs to be added first because they are used to override system include header.
0034    # This does not work if openssl include dir pointing to the standard include path would
0035    # be added first.
0036    if(NOT WIN32 OR NOT "${OPENSSL_INCLUDE_DIR}" STREQUAL "${INCLUDE_INSTALL_DIR}")
0037        include_directories(${OPENSSL_INCLUDE_DIR})
0038    endif()
0039 endif()
0040 
0041 add_subdirectory( kioslave )
0042 add_subdirectory( kssl/kssl )
0043 add_subdirectory( kssl/kcm )
0044 add_subdirectory( kio/imageformats )
0045 
0046 if(WIN32)
0047    set(libkdelibs4support_SRCS solid/networking_win.cpp
0048                                kdeui/kapplication_win.cpp)
0049 else()
0050    set(libkdelibs4support_SRCS solid/networking_unix.cpp)
0051 endif()
0052 
0053 
0054 set(libkdelibs4support_SRCS
0055     ${libkdelibs4support_SRCS}
0056     kdecore/k4aboutdata.cpp
0057     kdecore/kcomponentdata.cpp
0058     kdecore/kcurrencycode.cpp
0059     kdecore/kdebug.cpp
0060     kdecore/kdebugdbusiface.cpp
0061     kdecore/kdeversion.cpp
0062     kdecore/kkernel_mac.cpp
0063     kdecore/kkernel_win.cpp
0064     kdecore/klibloader.cpp
0065     kdecore/klibrary.cpp
0066     kdecore/ktemporaryfile.cpp
0067     kdecore/ktempdir.cpp
0068     kdecore/kmd5.cpp
0069     kdecore/kmimetype.cpp
0070     kdecore/kmimetyperepository.cpp
0071     kdecore/ksavefile.cpp
0072     kdecore/ksocketfactory.cpp
0073     kdecore/k3socketdevice.cpp
0074     kdecore/k3bufferedsocket.cpp
0075     kdecore/k3clientsocketbase.cpp
0076     kdecore/k3resolver.cpp
0077     kdecore/k3resolvermanager.cpp
0078     kdecore/k3resolverworkerbase.cpp
0079     kdecore/k3resolverstandardworkers.cpp
0080     kdecore/k3reverseresolver.cpp
0081     kdecore/k3serversocket.cpp
0082     kdecore/k3socketaddress.cpp
0083     kdecore/k3socketbase.cpp
0084     kdecore/k3streamsocket.cpp
0085     kdecore/k3socketbuffer.cpp
0086     kdecore/netsupp.cpp
0087     kdecore/kascii.cpp
0088     kdecore/qtest_kde.cpp
0089     kdecore/kstandarddirs.cpp
0090     kdecore/kglobal.cpp
0091     kdecore/kcmdlineargs.cpp
0092     kdecore/kurl.cpp
0093     kdecore/kstringhandler_deprecated.cpp
0094     kdecore/kcalendarera.cpp
0095     kdecore/kcalendarsystem.cpp
0096     kdecore/kcalendarsystemcoptic.cpp
0097     kdecore/kcalendarsystemethiopian.cpp
0098     kdecore/kcalendarsystemgregorian.cpp
0099     kdecore/kcalendarsystemislamiccivil.cpp
0100     kdecore/kcalendarsystemhebrew.cpp
0101     kdecore/kcalendarsystemindiannational.cpp
0102     kdecore/kcalendarsystemjalali.cpp
0103     kdecore/kcalendarsystemjapanese.cpp
0104     kdecore/kcalendarsystemjulian.cpp
0105     kdecore/kcalendarsystemminguo.cpp
0106     kdecore/kcalendarsystemthai.cpp
0107     kdecore/kdatetime.cpp
0108     kdecore/kdatetimeformatter.cpp
0109     kdecore/kdatetimeparser.cpp
0110     kdecore/kdayperiod.cpp
0111     kdecore/klocalizeddate.cpp
0112     kdecore/ktimezone.cpp
0113     kdecore/ksystemtimezone.cpp
0114     kdecore/ktzfiletimezone.cpp
0115     kdecore/klocale.cpp
0116     kdecore/klocale_kde.cpp
0117 
0118     kdeui/k3icon.cpp
0119     kdeui/k4style.cpp
0120     kdeui/kaction.cpp
0121     kdeui/kapplication.cpp
0122     kdeui/kbuttongroup.cpp
0123     kdeui/kcolorchoosermode.cpp
0124     kdeui/kcolordialog.cpp
0125     kdeui/kcolorhelpers.cpp
0126     kdeui/kcolorvalueselector.cpp
0127     kdeui/kdeuiwidgetsproxystyle.cpp
0128     kdeui/kdialog.cpp
0129     kdeui/kdialogqueue.cpp
0130     kdeui/kfontcombobox.cpp
0131     kdeui/kfontdialog.cpp
0132     kdeui/khuesaturationselect.cpp
0133     kdeui/kpassivepopupmessagehandler.cpp
0134     kdeui/ksessionmanager.cpp
0135     kdeui/kfadewidgeteffect.cpp
0136     kdeui/kicon.cpp
0137     kdeui/kinputdialog.cpp
0138     kdeui/knumvalidator.cpp
0139     kdeui/karrowbutton.cpp
0140     kdeui/ksplashscreen.cpp
0141     kdeui/kstringvalidator.cpp
0142     kdeui/kdialogbuttonbox.cpp
0143     kdeui/kpixmapcache.cpp
0144     kdeui/kprogressdialog.cpp
0145     kdeui/kmenu.cpp
0146     kdeui/kmenubar.cpp
0147     kdeui/kshortcut.cpp
0148     kdeui/kstatusbar.cpp
0149     kdeui/ksystemtrayicon.cpp
0150     kdeui/ktabbar.cpp
0151     kdeui/ktabwidget.cpp
0152     kdeui/kuniqueapplication.cpp
0153     kdeui/khbox.cpp
0154     kdeui/kvbox.cpp
0155     kdeui/kmessagebox_queued.cpp
0156     kdeui/kmessageboxmessagehandler.cpp
0157     kdeui/kpushbutton.cpp
0158     kdeui/kundostack.cpp
0159     kdeui/krestrictedline.cpp
0160     kdeui/klistwidget.cpp
0161     kdeui/ktextbrowser.cpp
0162     kdeui/keditlistbox.cpp
0163     kdeui/knuminput.cpp
0164     kdeui/kglobalsettings.cpp
0165     kdeui/kdatetimewidget.cpp
0166     kdeui/kdatewidget.cpp
0167     kdeui/k4timezonewidget.cpp
0168     kdeui/kdeprintdialog.cpp
0169     kdeui/kprintpreview.cpp
0170 
0171     kio/kfilemetainfowidget.cpp
0172     kio/kdiskfreespace.cpp
0173     kio/metainfojob.cpp
0174     kio/kdevicelistmodel.cpp
0175     kio/kdevicelistitem.cpp
0176     kio/kfiledialog.cpp
0177     kssl/ksslx509v3.cpp
0178     kssl/kssl.cpp
0179     kssl/ksslutils.cpp
0180     kssl/ksslcertchain.cpp
0181     kssl/ksslcertificate.cpp
0182     kssl/kopenssl.cpp
0183     kio/kfileshare.cpp
0184     kio/kfileitemactionplugin.cpp
0185     kio/passworddialog.cpp
0186     kio/kdatatool.cpp
0187     kio/kfilemetadataconfigurationwidget.cpp
0188     kio/kfilemetadatawidget.cpp
0189     kio/kfilemetainfowidget.cpp
0190     kio/kmetaprops.cpp
0191     kio/knfotranslator.cpp
0192     kio/kfilemetainfo.cpp
0193     kio/kfilemetainfoitem.cpp
0194     kio/kcommentwidget.cpp
0195     kio/predicateproperties.cpp
0196     kio/kfilewriteplugin.cpp
0197 #     kio/kpreviewprops.cpp
0198     kio/kscan.cpp
0199     kio/netaccess.cpp
0200     kio/kdirselectdialog.cpp
0201     kio/kimageio.cpp
0202     kio/kfiletreeview.cpp
0203 
0204     kparts/factory.cpp
0205     solid/powermanagement.cpp
0206     solid/networking.cpp
0207 )
0208 
0209 set_source_files_properties( solid/org.freedesktop.PowerManagement.xml
0210                              solid/org.freedesktop.PowerManagement.Inhibit.xml
0211                              solid/org.kde.Solid.PowerManagement.PolicyAgent.xml
0212                              PROPERTIES NO_NAMESPACE TRUE)
0213 
0214 qt_add_dbus_interface(libkdelibs4support_SRCS solid/org.kde.Solid.Networking.Client.xml
0215                        org_kde_solid_networking_client)
0216 
0217 qt_add_dbus_interfaces(libkdelibs4support_SRCS solid/org.freedesktop.PowerManagement.xml
0218                         solid/org.freedesktop.PowerManagement.Inhibit.xml
0219                         solid/org.kde.Solid.PowerManagement.PolicyAgent.xml)
0220 
0221 if (NOT KIO_NO_NEPOMUK)
0222     set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS}
0223         kio/kfilemetadatareader.cpp
0224         kio/kfilemetadatareaderprocess.cpp
0225         kio/kfilemetadataprovider.cpp
0226     )
0227 endif ()
0228 
0229 if (HAVE_X11)
0230    set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS} kdeui/kxerrorhandler.cpp )
0231    list(APPEND libkdelibs4support_OPTIONAL_LIBS Qt5::X11Extras ${X11_LIBRARIES})
0232 endif ()
0233 
0234 if (WIN32)
0235     set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS}
0236                             kdecore/klockfile_win.cpp
0237                             kdecore/kde_file_win.cpp
0238                             kdecore/ktimezone_win.cpp
0239                             kdecore/klocale_win.cpp
0240                             )
0241 else()
0242     set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS} kdecore/klockfile_unix.cpp)
0243 endif ()
0244 
0245 if (APPLE)
0246     set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS}
0247                             kdecore/klocale_mac.cpp
0248                             )
0249     set(libkdelibs4support_OPTIONAL_LIBS ${CARBON_LIBRARY})
0250 endif()
0251 
0252 if (UNIX)
0253     set(libkdelibs4support_SRCS ${libkdelibs4support_SRCS}
0254                             kdecore/klocale_unix.cpp
0255                             )
0256 endif()
0257 
0258 # Configure checks for io/
0259 include(kdecore/ConfigureChecks.cmake)
0260 configure_file(kdecore/config-io.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-io.h)
0261 
0262 # Configure checks for date/
0263 configure_file(kdecore/config-date.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-date.h)
0264 
0265 # Configure checks for localization
0266 configure_file(kdecore/config-localization.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-localization.h)
0267 
0268 
0269 # Configure checks for network/ but also for netsupp.*
0270 include(ConfigureChecks.cmake)
0271 configure_file(config-network.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-network.h )
0272 
0273 check_function_exists(mmap HAVE_MMAP)
0274 check_symbol_exists(posix_madvise "sys/mman.h" HAVE_MADVISE)
0275 configure_file(config-kdelibs4support.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kdelibs4support.h )
0276 check_include_files(sys/stat.h HAVE_SYS_STAT_H)
0277 check_include_files(sys/time.h HAVE_SYS_TIME_H)
0278 configure_file(kdecore/config-klockfile.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-klockfile.h)
0279 # we use this for the kstandarddirs unit tests
0280 get_target_property(KCONFIG_COMPILER_LOCATION KF5::kconfig_compiler LOCATION)
0281 # Generate config-kstandarddirs.h
0282 configure_file(config-kstandarddirs.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kstandarddirs.h )
0283 
0284 check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY)
0285 if (__KDE_HAVE_GCC_VISIBILITY)
0286   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
0287 endif()
0288 configure_file(kdemacros.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h )
0289 
0290 add_library(KF5KDELibs4Support ${libkdelibs4support_SRCS})
0291 generate_export_header(KF5KDELibs4Support BASE_NAME KDELibs4Support EXPORT_FILE_NAME kdelibs4support_export_internal.h)
0292 add_library(KF5::KDELibs4Support ALIAS KF5KDELibs4Support)
0293 
0294 target_include_directories(KF5KDELibs4Support PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../../..")
0295 
0296 set(kdelibs4support_INCLUDES
0297   "${CMAKE_CURRENT_SOURCE_DIR}/kdecore"
0298   "${CMAKE_CURRENT_SOURCE_DIR}/kdeui"
0299   "${CMAKE_CURRENT_SOURCE_DIR}/kio"
0300   "${CMAKE_CURRENT_SOURCE_DIR}/kssl"
0301   "${CMAKE_CURRENT_BINARY_DIR}/kssl" # ksslconfig.h
0302   "${CMAKE_CURRENT_SOURCE_DIR}/kparts"
0303   "${CMAKE_CURRENT_SOURCE_DIR}/solid"
0304   "${CMAKE_CURRENT_BINARY_DIR}/.." # kdelibs4support_version.h
0305   "${CMAKE_SOURCE_DIR}"
0306 )
0307 target_include_directories(KF5KDELibs4Support PUBLIC "$<BUILD_INTERFACE:${kdelibs4support_INCLUDES}>")
0308 
0309 target_include_directories(KF5KDELibs4Support INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support>" "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support/KDE>")
0310 
0311 set(platformLinkLibraries)
0312 if (APPLE)
0313     set(platformLinkLibraries "-framework CoreFoundation -framework Carbon -lresolv")
0314 endif()
0315 if (HAVE_X11)
0316     set(platformLinkLibraries ${XCB_XCB_LIBRARY})
0317 endif()
0318 
0319 target_link_libraries(KF5KDELibs4Support
0320 PUBLIC
0321    Qt5::Widgets
0322    Qt5::DBus
0323    Qt5::PrintSupport
0324    KF5::CoreAddons
0325    KF5::Crash
0326    KF5::WidgetsAddons
0327    KF5::ConfigCore # KSharedConfig in kcomponentdata.h
0328    KF5::ConfigWidgets
0329    KF5::KIOCore
0330    KF5::KIOFileWidgets
0331    KF5::I18n
0332    KF5::Completion
0333    KF5::Notifications
0334    KF5::IconThemes
0335    KF5::WindowSystem
0336    KF5::GuiAddons
0337    KF5::UnitConversion
0338    KF5::TextWidgets
0339    KF5::Parts
0340    KF5::Auth
0341 PRIVATE
0342    KF5::UnitConversion
0343    KF5::GlobalAccel
0344    Qt5::Svg
0345    Qt5::Test # for qtest_kde.cpp
0346    ${KIO_EXTRA_LIBS}
0347    ${libkdelibs4support_OPTIONAL_LIBS}
0348    ${platformLinkLibraries}
0349 )
0350 
0351 if(WIN32)
0352     target_link_libraries(KF5KDELibs4Support PUBLIC kdewin)
0353     # required by moc to generate correct slot access code from solid/networking_q.h
0354     set_target_properties(KF5KDELibs4Support PROPERTIES COMPILE_DEFINITIONS "Q_OS_WIN")
0355 endif()
0356 
0357 
0358 if(NOT KIO_NO_NEPOMUK)
0359     target_link_libraries(KF5KDELibs4Support PRIVATE ${KDE4_NEPOMUK_LIBRARY} nepomukquery nepomukutils)
0360 endif()
0361 
0362 if(NOT KIO_NO_NEPOMUK)
0363     add_executable(kfilemetadatareader kio/kfilemetadatareaderprocess.cpp)
0364     target_link_libraries(kfilemetadatareader ${KDE4_NEPOMUK_LIBRARY} nepomukutils KF5::CoreAddons KF5::I18n KF5::KDELibs4Support)
0365     install(TARGETS kfilemetadatareader ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
0366 endif()
0367 
0368 set_target_properties(KF5KDELibs4Support PROPERTIES
0369     VERSION ${KDELIBS4SUPPORT_VERSION}
0370     SOVERSION ${KDELIBS4SUPPORT_SOVERSION}
0371     EXPORT_NAME KDELibs4Support
0372 )
0373 
0374 
0375 ########## Designer plugin
0376 
0377 kf5designerplugin_add_plugin(kf5deprecatedwidgets
0378     kdedeprecated.widgets
0379     kdedeprecated.qrc
0380     classpreviews.cpp
0381 )
0382 
0383 target_link_libraries(kf5deprecatedwidgets KF5::KDELibs4Support
0384                                     Qt5::Widgets
0385                                     Qt5::Designer
0386                                     KF5::ConfigCore
0387                                     KF5::Completion
0388                                     KF5::WidgetsAddons
0389                                     KF5::Auth
0390                                     )
0391 
0392 install(TARGETS kf5deprecatedwidgets DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/designer)
0393 
0394 ##########
0395 
0396 add_subdirectory(pics)
0397 
0398 install(TARGETS KF5KDELibs4Support
0399         EXPORT KF5KDELibs4SupportTargets
0400         ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
0401 
0402 install(FILES
0403     kdecore/k4aboutdata.h
0404     kdecore/kcomponentdata.h
0405     kdecore/kcurrencycode.h
0406     kdecore/kdebug.h
0407     kdecore/kde_file.h
0408     kdecore/klibloader.h
0409     kdecore/klibrary.h
0410     kdecore/ktemporaryfile.h
0411     kdecore/ktempdir.h
0412     kdecore/kmd5.h
0413     kdecore/ksavefile.h
0414     kdecore/ksocketfactory.h
0415     kdecore/k3bufferedsocket.h
0416     kdecore/k3clientsocketbase.h
0417     kdecore/k3resolver.h
0418     kdecore/k3reverseresolver.h
0419     kdecore/k3serversocket.h
0420     kdecore/k3socketaddress.h
0421     kdecore/k3socketbase.h
0422     kdecore/k3socketdevice.h
0423     kdecore/k3streamsocket.h
0424     kdecore/kconfiggroup_kurl.h
0425     kdecore/kmimetype.h
0426     kdecore/kgenericfactory.h
0427     kdecore/kgenericfactory.tcc
0428     kdecore/ktypelist.h
0429     kdecore/kascii.h
0430     kdecore/qtest_kde.h
0431     kdecore/kstandarddirs.h
0432     kdecore/kglobal.h
0433     kdecore/kcmdlineargs.h
0434     kdecore/klockfile.h
0435     kdecore/kurl.h
0436     kdecore/ksharedptr.h
0437     kdecore/kstringhandler_deprecated.h
0438     kdecore/kcalendarsystem.h
0439     kdecore/kdatetime.h
0440     kdecore/klocalizeddate.h
0441     kdecore/ksystemtimezone.h
0442     kdecore/ktimezone.h
0443     kdecore/ktzfiletimezone.h
0444     kdecore/klocale.h
0445     kdecore/kdefakes.h
0446 
0447     kio/kdiskfreespace.h
0448     kio/kdatatool.h
0449     kio/kfilemetadataconfigurationwidget.h
0450     kio/kfilemetadatawidget.h
0451     kio/kfilemetainfoitem.h
0452     kio/kfilemetainfowidget.h
0453     kio/kfilemetainfo.h
0454     kio/predicateproperties.h
0455     kio/kfilewriteplugin.h
0456     kio/kfileshare.h
0457     kio/kfileitemactionplugin.h
0458     kio/kscan.h
0459     kio/kdirselectdialog.h
0460     kio/kfiledialog.h
0461     kio/kpropsdialog.h
0462     kio/kdevicelistmodel.h
0463     kio/kimageio.h
0464     kssl/ksslcertificate.h
0465     kssl/ksslx509v3.h
0466     kssl/kssl.h
0467     kssl/ksslutils.h
0468     kssl/ksslcertchain.h
0469 
0470     kdeui/k4style.h
0471     kdeui/kaccelgen.h
0472     kdeui/kaction.h
0473     kdeui/kapplication.h
0474     kdeui/kbuttongroup.h
0475     kdeui/kcolorchoosermode.h
0476     kdeui/kcolordialog.h
0477     kdeui/kcolorvalueselector.h
0478     kdeui/kdialog.h
0479     kdeui/khuesaturationselect.h
0480     kdeui/kpassivepopupmessagehandler.h
0481     kdeui/ksessionmanager.h
0482     kdeui/kfadewidgeteffect.h
0483     kdeui/kfontcombobox.h
0484     kdeui/kfontdialog.h
0485     kdeui/kicon.h
0486     kdeui/kinputdialog.h
0487     kdeui/knumvalidator.h
0488     kdeui/karrowbutton.h
0489     kdeui/ksplashscreen.h
0490     kdeui/ktabbar.h
0491     kdeui/ktabwidget.h
0492     kdeui/kdialogbuttonbox.h
0493     kdeui/kpixmapcache.h
0494     kdeui/kprogressdialog.h
0495     kdeui/kmenu.h
0496     kdeui/kmenubar.h
0497     kdeui/kshortcut.h
0498     kdeui/kstatusbar.h
0499     kdeui/kstringvalidator.h
0500     kdeui/ksystemtrayicon.h
0501     kdeui/kuniqueapplication.h
0502     kdeui/khbox.h
0503     kdeui/kvbox.h
0504     kdeui/kmessagebox_queued.h
0505     kdeui/kmessageboxmessagehandler.h
0506     kdeui/kpushbutton.h
0507     kdeui/kundostack.h
0508     kdeui/krestrictedline.h
0509     kdeui/klistwidget.h
0510     kdeui/ktextbrowser.h
0511     kdeui/keditlistbox.h
0512     kdeui/knuminput.h
0513     kdeui/kviewstatesaver.h
0514     kdeui/kxerrorhandler.h
0515     kdeui/kglobalsettings.h
0516     kdeui/kdatetimewidget.h
0517     kdeui/kdatewidget.h
0518     kdeui/k4timezonewidget.h
0519     kdeui/kdeprintdialog.h
0520     kdeui/kprintpreview.h
0521     kdecore/kdelibs4support_export.h
0522     ${CMAKE_CURRENT_BINARY_DIR}/kdelibs4support_export_internal.h
0523     ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h
0524     kdecore/kdeversion.h
0525     DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support COMPONENT Devel
0526 )
0527 
0528 install(FILES
0529     solid/networking.h
0530     solid/powermanagement.h
0531     DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support/solid COMPONENT Devel
0532 )
0533 
0534 configure_file(kssl/ksslconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kssl/ksslconfig.h )
0535 set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/kssl/ksslconfig.h )
0536 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kssl/ksslconfig.h 
0537   DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support COMPONENT Devel)
0538 
0539 install( FILES kdebug.areas kdebugrc DESTINATION ${KDE_INSTALL_CONFDIR} )
0540 
0541 configure_file(kdecore/all_languages.desktop ${CMAKE_CURRENT_BINARY_DIR}/all_languages @ONLY)
0542 install( FILES ${CMAKE_CURRENT_BINARY_DIR}/all_languages DESTINATION ${KDE_INSTALL_LOCALEDIR} RENAME kf5_all_languages )
0543 
0544 
0545 install( FILES kdeui/40.colors kdeui/Oxygen.colors kdeui/Web.colors kdeui/Royal.colors kdeui/Rainbow.colors
0546          DESTINATION ${KDE_INSTALL_CONFDIR}/colors)
0547 
0548 if (NOT HAVE_X11)
0549     # install our copy of the rgb.txt named colors list on systems without X11
0550     install(FILES kdeui/rgb.txt DESTINATION ${KDE_INSTALL_DATADIR_KF5}/kdeui)
0551 endif ()
0552 
0553 # kio/*.h
0554 install(FILES
0555     kio/metainfojob.h
0556     kio/passworddialog.h
0557     kio/netaccess.h
0558     DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support/kio COMPONENT Devel
0559 )
0560 
0561 # kparts/*.h
0562 install(FILES
0563     kparts/genericfactory.h
0564     kparts/factory.h
0565     kparts/listingextension.h
0566     DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support/kparts COMPONENT Devel
0567 )
0568 
0569 # knewstuff3/*.h
0570 install( FILES
0571     knewstuff3/downloaddialog.h
0572     knewstuff3/downloadmanager.h
0573     knewstuff3/downloadwidget.h
0574     knewstuff3/entry.h
0575     knewstuff3/knewstuffaction.h
0576     knewstuff3/knewstuffbutton.h
0577     knewstuff3/uploaddialog.h
0578     DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5}/KDELibs4Support/knewstuff3 COMPONENT Devel
0579 )
0580 
0581 install( FILES
0582     KDECoreMacros.cmake
0583     KDEUIMacros.cmake
0584     kde4uic.cmake
0585     DESTINATION ${CMAKECONFIG_INSTALL_DIR} COMPONENT Devel )
0586 
0587 install( FILES
0588     kio/kscan.desktop
0589     kio/kdatatool.desktop
0590     kio/kfilewrite.desktop
0591     DESTINATION  ${KDE_INSTALL_KSERVICETYPES5DIR} )
0592 
0593 # install the fileshareset and filesharelist scripts, they are not required on windows
0594 if (UNIX)
0595    install(PROGRAMS kio/fileshareset DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} )
0596 
0597    install(CODE "
0598      set(FILESHARESET_PATH \"\$ENV{DESTDIR}/${KDE_INSTALL_FULL_LIBEXECDIR_KF5}/fileshareset\")
0599         EXECUTE_PROCESS(COMMAND sh -c \"chown 0 '\${FILESHARESET_PATH}' && chmod u+s '\${FILESHARESET_PATH}'\")
0600    ")
0601 
0602    # write a cmake script file which creates the symlink
0603    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink fileshareset \"\$ENV{DESTDIR}/${KDE_INSTALL_FULL_LIBEXECDIR_KF5}/filesharelist\")\n")
0604    # and add it as post-install script to any of the installed targets, so it will be executed during "make install"
0605    set_target_properties(KF5KDELibs4Support PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake)
0606 endif ()
0607 
0608 #solid stuff
0609 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/solid/org.kde.Solid.Networking.Client.xml
0610         DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
0611         RENAME kf5_org.kde.Solid.Networking.Client.xml)
0612 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/solid/org.kde.Solid.PowerManagement.PolicyAgent.xml
0613         DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
0614         RENAME kf5_org.kde.Solid.PowerManagement.PolicyAgent.xml)
0615 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/solid/org.freedesktop.PowerManagement.xml
0616         DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
0617         RENAME kf5_org.freedesktop.PowerManagement.xml)
0618 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/solid/org.freedesktop.PowerManagement.Inhibit.xml
0619         DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}
0620         RENAME kf5_org.freedesktop.PowerManagement.Inhibit.xml)
0621 
0622 ########## DocBookXML 4.2 compatibility
0623 
0624 set (_legacy_docbookxml "4.2")
0625 find_package(DocBookXML4 ${_legacy_docbookxml})
0626 if (DocBookXML4_FOUND)
0627     set(DOCBOOKXML_FOUND "TRUE")
0628     set(DOCBOOKXML_CURRENTDTD_DIR ${DocBookXML4_DTD_DIR})
0629     set(DOCBOOKXML_CURRENTDTD_VERSION ${_legacy_docbookxml})
0630 endif ()
0631 
0632 mark_as_advanced (DocBookXML4_DTD_DIR DocBookXML4_DTD_VERSION)
0633 
0634 include(uriencode)
0635 set (_custom_dtd_kdex "customization/dtd/kdex.dtd")
0636 # The path to KDocTools resources is set as absolute, allowing the
0637 # installation of KDocTools and KDELibs4Support in different prefixes.
0638 set (_KDocTools_customization_dir "${KDOCTOOLS_CUSTOMIZATION_DIR}")
0639 kdelibs4support_encode_uri(DocBookXML4_DTD_DIR)
0640 kdelibs4support_encode_uri(_KDocTools_customization_dir)
0641 configure_file(${_custom_dtd_kdex}.cmake ${CMAKE_CURRENT_BINARY_DIR}/${_custom_dtd_kdex} )
0642 # WARNING: this is due to severe limitations on the windows platform to keep the dtd relocateable
0643 # see the .xsl.cmake files for a more verbose explanation below
0644 if(NOT WIN32)
0645     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_custom_dtd_kdex}
0646         DESTINATION ${KDE_INSTALL_DATADIR_KF5}/kdoctools/customization/dtd )
0647 else()
0648     set(NORMALIZED_DTD_INSTALL_PATH "${KDE_INSTALL_FULL_DATADIR_KF5}/kdoctools/customization/dtd")
0649     # file(RELATIVE_PATH ...) returns wrong values for paths containing /../ (it doesn't normalize the path)
0650     # To work around this we make sure the variable passed has all /../ elements
0651     # removed using get_filename_component(... ABSOLUTE)
0652     install(CODE
0653         "file(RELATIVE_PATH DocBookXML4_DTD_DIR \"${NORMALIZED_DTD_INSTALL_PATH}\" \"${DocBookXML4_DTD_DIR}\")
0654         file(RELATIVE_PATH _KDocTools_customization_dir \"${NORMALIZED_DTD_INSTALL_PATH}\" \"${_KDocTools_customization_dir}\")
0655         include(\"${CMAKE_SOURCE_DIR}/cmake/uriencode.cmake\")
0656         set(CMAKE_MODULE_PATH \"${CMAKE_MODULE_PATH}\")
0657         kdelibs4support_encode_uri(DocBookXML4_DTD_DIR)
0658         kdelibs4support_encode_uri(_KDocTools_customization_dir)
0659         configure_file(\"${CMAKE_CURRENT_SOURCE_DIR}/${_custom_dtd_kdex}.cmake\" \"${CMAKE_CURRENT_BINARY_DIR}/${_custom_dtd_kdex}.install\")"
0660     )
0661     get_filename_component(_custom_dtd_kdex_name ${_custom_dtd_kdex} NAME)
0662     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_custom_dtd_kdex}.install DESTINATION ${KDE_INSTALL_DATADIR_KF5}/kdoctools/customization/dtd RENAME ${_custom_dtd_kdex_name})
0663 endif()
0664 
0665 install(FILES "customization/catalog4.xml"
0666     DESTINATION ${KDE_INSTALL_DATADIR_KF5}/kdoctools/customization )
0667