Warning, /network/konqueror/client/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ########### kfmclient ###############
0002 include(ECMMarkNonGuiExecutable)
0003 
0004 set(kfmclient_SRCS
0005    kfmclient.cpp
0006    konqclientrequest.cpp
0007 )
0008 
0009 ecm_qt_declare_logging_category(kfmclient_SRCS HEADER kfmclient_debug.h IDENTIFIER KFMCLIENT_LOG CATEGORY_NAME org.kde.kfmclient)
0010 
0011 qt_add_dbus_interface( kfmclient_SRCS ../src/org.kde.Konqueror.Main.xml konq_main_interface )
0012 qt_add_dbus_interface( kfmclient_SRCS ../src/org.kde.Konqueror.MainWindow.xml konq_mainwindow_interface )
0013 
0014 add_definitions(-DQT_NO_CAST_ASCII)
0015 
0016 set(kfmclient_LIBS
0017    KF${KF_MAJOR_VERSION}::CoreAddons
0018    KF${KF_MAJOR_VERSION}::KIOCore
0019    KF${KF_MAJOR_VERSION}::KIOWidgets
0020    KF${KF_MAJOR_VERSION}::I18n
0021    KF${KF_MAJOR_VERSION}::WindowSystem
0022    Qt${KF_MAJOR_VERSION}::DBus
0023 )
0024 
0025 if (KF_MAJOR_VERSION STRLESS "6")
0026     list(APPEND kfmclient_LIBS Qt5::X11Extras)
0027 endif()
0028 
0029 if (WIN32)
0030     add_definitions(-Dkdemain=main)
0031     add_executable(kfmclient ${kfmclient_SRCS})
0032     target_link_libraries(kfmclient ${kfmclient_LIBS})
0033 else ()
0034     if (KF_MAJOR_VERSION STRLESS "6")
0035         list(APPEND kfmclient_LIBS Qt${KF_MAJOR_VERSION}::X11Extras)
0036         kf5_add_kdeinit_executable( kfmclient NOGUI ${kfmclient_SRCS})
0037         target_link_libraries(kdeinit_kfmclient ${kfmclient_LIBS} )
0038         install(TARGETS kdeinit_kfmclient  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0039     else()
0040         list(APPEND kfmclient_LIBS Qt${KF_MAJOR_VERSION}::GuiPrivate)
0041         add_executable(kfmclient ${kfmclient_SRCS})
0042         target_link_libraries(kfmclient ${kfmclient_LIBS})
0043     endif()
0044 endif ()
0045 
0046 install(TARGETS kfmclient ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0047