generic: major build system cleanup

This commit is contained in:
Ivailo Monev 2015-09-01 04:37:19 +03:00
parent 4550b23406
commit 2baf4467d1
240 changed files with 769 additions and 895 deletions

View file

@ -325,22 +325,12 @@ set(KDE4WORKSPACE_TARGET_PREFIX KDE4Workspace__)
configure_file(KDE4WorkspaceConfig.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/KDE4WorkspaceConfig.cmake" @ONLY)
set(_KDE4WorkspaceConfig_INSTALL_DIR ${LIB_INSTALL_DIR}/KDE4Workspace/cmake)
# places where find_package() looks for FooConfig.cmake files:
# CMake >= 2.6.0 looks in lib/Foo*/cmake/, CMake >= 2.6.3 also looks in
# lib/cmake/Foo*/, which packagers prefer. So they can set the KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR
# option to have kdepimlibs install its Config file there. Alex
if(KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
set(_KDE4WorkspaceConfig_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/KDE4Workspace)
endif(KDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/KDE4WorkspaceConfig.cmake
DESTINATION ${_KDE4WorkspaceConfig_INSTALL_DIR})
DESTINATION ${LIB_INSTALL_DIR}/cmake/KDE4Workspace)
install(EXPORT kdeworkspaceLibraryTargets
NAMESPACE ${KDE4WORKSPACE_TARGET_PREFIX}
DESTINATION ${_KDE4WorkspaceConfig_INSTALL_DIR}
DESTINATION ${LIB_INSTALL_DIR}/cmake/KDE4Workspace
FILE KDE4WorkspaceLibraryTargets.cmake )

View file

@ -13,7 +13,9 @@ add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1410)
add_subdirectory( data )
add_subdirectory( parser )
add_subdirectory( tests )
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set(drkonqi_SRCS
main.cpp
@ -32,11 +34,8 @@ set(drkonqi_SRCS
debuggerlaunchers.cpp
debuggermanager.cpp
gdbhighlighter.cpp
)
kde4_add_ui_files(drkonqi_SRCS
ui/maindialog.ui
ui/backtracewidget.ui
maindialog.ui
backtracewidget.ui
)
# if BACKTRACE_PARSER_DEBUG is enabled, it will show both the
@ -44,7 +43,7 @@ kde4_add_ui_files(drkonqi_SRCS
# Comment this out for release.
#add_definitions(-DBACKTRACE_PARSER_DEBUG)
kde4_add_executable(drkonqi ${drkonqi_SRCS})
add_executable(drkonqi ${drkonqi_SRCS})
target_link_libraries(drkonqi
${KDE4_KIO_LIBS}

View file

@ -5,5 +5,5 @@ set(BACKTRACEPARSER_SRCS
backtraceparsernull.cpp
)
kde4_add_library(drkonqi_backtrace_parser STATIC ${BACKTRACEPARSER_SRCS})
add_library(drkonqi_backtrace_parser STATIC ${BACKTRACEPARSER_SRCS})
target_link_libraries(drkonqi_backtrace_parser ${KDE4_KDECORE_LIBS})

View file

@ -1,7 +1,7 @@
kde4_add_unit_test( backtraceparsertest fakebacktracegenerator.cpp backtraceparsertest.cpp)
target_link_libraries( backtraceparsertest ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} drkonqi_backtrace_parser)
kde4_add_executable(backtraceparsertest_manual TEST fakebacktracegenerator.cpp backtraceparsertest_manual.cpp)
add_executable(backtraceparsertest_manual TEST fakebacktracegenerator.cpp backtraceparsertest_manual.cpp)
target_link_libraries(backtraceparsertest_manual drkonqi_backtrace_parser)
# create a link so that the data directory can be accessed from the build directory, where the test runs

View file

@ -3,7 +3,7 @@ set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set(crashtest_SRCS crashtest.cpp )
kde4_add_executable(crashtest TEST ${crashtest_SRCS})
add_executable(crashtest TEST ${crashtest_SRCS})
target_link_libraries(crashtest ${KDE4_KDEUI_LIBS} )

View file

@ -1,16 +1,11 @@
project (freespacenotifier)
find_package(KDE4 REQUIRED)
include (KDE4Defaults)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
########### next target ###############
set(kded_freespacenotifier_SRCS freespacenotifier.cpp module.cpp)
kde4_add_ui_files(kded_freespacenotifier_SRCS freespacenotifier_prefs_base.ui)
set(kded_freespacenotifier_SRCS freespacenotifier.cpp module.cpp freespacenotifier_prefs_base.ui)
kde4_add_kcfg_files(kded_freespacenotifier_SRCS settings.kcfgc)

View file

@ -13,7 +13,7 @@ set(kcheckpass_SRCS
checkpass_aix.c
)
kde4_add_executable(kcheckpass NOGUI ${kcheckpass_SRCS})
add_executable(kcheckpass ${kcheckpass_SRCS})
if (KDE4_ENABLE_FPIE)
macro_add_compile_flags(kcheckpass ${KDE4_CXX_FPIE_FLAGS})

View file

@ -3,7 +3,7 @@
set(kcminit_SRCS main.cpp)
kde4_add_executable(kcminit ${kcminit_SRCS})
add_executable(kcminit ${kcminit_SRCS})
target_link_libraries(kcminit ${KDE4_KCMUTILS_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
@ -16,7 +16,7 @@ install(TARGETS kcminit ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kcminit_startup_SRCS main.cpp)
kde4_add_executable( kcminit_startup ${kcminit_startup_SRCS})
add_executable( kcminit_startup ${kcminit_startup_SRCS})
target_link_libraries(kcminit_startup ${KDE4_KCMUTILS_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})

View file

@ -1,7 +1,7 @@
set(kcmshell_SRCS main.cpp )
kde4_add_executable( kcmshell4 ${kcmshell_SRCS})
add_executable( kcmshell4 ${kcmshell_SRCS})
target_link_libraries(kcmshell4 ${KDE4_KCMUTILS_LIBS} ${KDE4_KDEUI_LIBS} )

View file

@ -19,7 +19,7 @@ install(TARGETS kcm_access DESTINATION ${PLUGIN_INSTALL_DIR} )
set(kaccess_SRCS kaccess.cpp main.cpp )
kde4_add_executable( kaccess ${kaccess_SRCS})
add_executable( kaccess ${kaccess_SRCS})
target_link_libraries(kaccess ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS} ${X11_LIBRARIES})

View file

@ -1,7 +1,5 @@
PROJECT (autostart)
INCLUDE (KDE4Defaults)
ADD_DEFINITIONS (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
@ -11,9 +9,9 @@ SET(kcm_autostart_PART_SRCS
autostartitem.cpp
addscriptdialog.cpp
advanceddialog.cpp
autostart.cpp )
KDE4_ADD_UI_FILES(kcm_autostart_PART_SRCS autostartconfig.ui )
autostart.cpp
autostartconfig.ui
)
KDE4_ADD_PLUGIN(kcm_autostart ${kcm_autostart_PART_SRCS})

View file

@ -1,6 +1,12 @@
set(kcm_colors_PART_SRCS ../krdb/krdb.cpp colorscm.cpp previewwidget.cpp setpreviewwidget.cpp)
kde4_add_ui_files(kcm_colors_PART_SRCS colorsettings.ui preview.ui setpreview.ui)
set(kcm_colors_PART_SRCS
../krdb/krdb.cpp
colorscm.cpp
previewwidget.cpp
setpreviewwidget.cpp
colorsettings.ui
preview.ui
setpreview.ui
)
kde4_add_plugin(kcm_colors ${kcm_colors_PART_SRCS})
target_link_libraries(kcm_colors ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})

View file

@ -2,8 +2,6 @@
add_subdirectory( componentservices )
add_subdirectory( windowmanagers )
########### next target ###############
set(kcm_componentchooser_SRCS
@ -14,34 +12,32 @@ set(kcm_componentchooser_SRCS
kcm_componentchooser.cpp
)
set(kcm_componentchooser_SRCS ${kcm_componentchooser_SRCS}
componentchooserterminal.cpp ktimerdialog.cpp)
set(kcm_componentchooser_SRCS
${kcm_componentchooser_SRCS}
componentchooserterminal.cpp
ktimerdialog.cpp
browserconfig_ui.ui
filemanagerconfig_ui.ui
emailclientconfig_ui.ui
componentchooser_ui.ui
componentconfig_ui.ui
terminalemulatorconfig_ui.ui
wmconfig_ui.ui
)
if(Q_WS_X11)
set(kcm_componentchooser_SRCS ${kcm_componentchooser_SRCS}
componentchooserwm.cpp )
endif(Q_WS_X11)
kde4_add_ui_files(kcm_componentchooser_SRCS
browserconfig_ui.ui
filemanagerconfig_ui.ui
emailclientconfig_ui.ui
componentchooser_ui.ui
componentconfig_ui.ui
)
kde4_add_ui_files(kcm_componentchooser_SRCS terminalemulatorconfig_ui.ui wmconfig_ui.ui)
kde4_add_plugin(kcm_componentchooser ${kcm_componentchooser_SRCS})
target_link_libraries(kcm_componentchooser ${KDE4_KIO_LIBS})
target_link_libraries(kcm_componentchooser ${KDE4_KIO_LIBS})
install(TARGETS kcm_componentchooser DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_componentchooser DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES componentchooser.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES componentchooser.desktop DESTINATION ${SERVICES_INSTALL_DIR})

View file

@ -1,8 +1,6 @@
########### next target ###############
set(kcm_clock_PART_SRCS dtime.cpp main.cpp )
kde4_add_ui_files(kcm_clock_PART_SRCS dateandtime.ui)
set(kcm_clock_PART_SRCS dtime.cpp main.cpp dateandtime.ui)
kde4_add_plugin(kcm_clock ${kcm_clock_PART_SRCS})
target_link_libraries(kcm_clock ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS} )
@ -11,7 +9,7 @@ install(TARGETS kcm_clock DESTINATION ${PLUGIN_INSTALL_DIR} )
########### next target ###############
kde4_add_executable(kcmdatetimehelper helper.cpp ${helper_mocs})
add_executable(kcmdatetimehelper helper.cpp ${helper_mocs})
target_link_libraries(kcmdatetimehelper ${KDE4_KDECORE_LIBS})
install(TARGETS kcmdatetimehelper DESTINATION ${LIBEXEC_INSTALL_DIR})

View file

@ -1,8 +1,12 @@
# Project Needs a name ofcourse
project(desktoptheme)
set(kcmdesktoptheme_SRCS kcmdesktoptheme.cpp desktopthemedetails.cpp thememodel.cpp)
kde4_add_ui_files(kcmdesktoptheme_SRCS DesktopTheme.ui DesktopThemeDetails.ui)
set(kcmdesktoptheme_SRCS
kcmdesktoptheme.cpp
desktopthemedetails.cpp
thememodel.cpp
DesktopTheme.ui
DesktopThemeDetails.ui
)
kde4_add_plugin(kcm_desktoptheme ${kcmdesktoptheme_SRCS})
target_link_libraries(kcm_desktoptheme
@ -11,10 +15,12 @@ target_link_libraries(kcm_desktoptheme
${KDE4_KPARTS_LIBS}
${KDE4_KCMUTILS_LIBRARY}
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS})
${KDE4_KIO_LIBS}
)
install(TARGETS kcm_desktoptheme DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_desktoptheme DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES desktoptheme.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES desktoptheme.desktop DESTINATION ${SERVICES_INSTALL_DIR})

View file

@ -21,6 +21,7 @@
#include <KMessageBox>
#include <KStandardDirs>
#include <KZip>
#include <KLocale>
#include <kio/netaccess.h>
#include <kio/copyjob.h>
#include <kio/deletejob.h>

View file

@ -3,19 +3,16 @@
########### next target ###############
set(kcm_kdnssd_PART_SRCS kcmdnssd.cpp kcmdnssd.h )
kde4_add_ui_files(kcm_kdnssd_PART_SRCS configdialog.ui )
set(kcm_kdnssd_PART_SRCS kcmdnssd.cpp kcmdnssd.h configdialog.ui)
kde4_add_plugin(kcm_kdnssd ${kcm_kdnssd_PART_SRCS})
target_link_libraries(kcm_kdnssd ${KDE4_KDNSSD_LIBS} ${KDE4_KDEUI_LIBS} )
target_link_libraries(kcm_kdnssd ${KDE4_KDNSSD_LIBS} ${KDE4_KDEUI_LIBS})
install(TARGETS kcm_kdnssd DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_kdnssd DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES kcm_kdnssd.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES kcm_kdnssd.desktop DESTINATION ${SERVICES_INSTALL_DIR})

View file

@ -1,5 +1,4 @@
set(kcmemoticons_SRCS emoticonslist.cpp)
kde4_add_ui_files(kcmemoticons_SRCS emoticonslist.ui)
set(kcmemoticons_SRCS emoticonslist.cpp emoticonslist.ui)
kde4_add_plugin(kcm_emoticons ${kcmemoticons_SRCS})
target_link_libraries(kcm_emoticons ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KEMOTICONS_LIBRARY})

View file

@ -23,6 +23,7 @@
#include <QStringList>
#include <KLineEdit>
#include <KDialog>
#include <kcmodule.h>
#include <kemoticons.h>
#include "ui_emoticonslist.h"

View file

@ -1,20 +1,19 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
########### next target ###############
set(kcm_icons_PART_SRCS iconthemes.cpp icons.cpp main.cpp )
set(kcm_icons_PART_SRCS iconthemes.cpp icons.cpp main.cpp)
kde4_add_plugin(kcm_icons ${kcm_icons_PART_SRCS})
target_link_libraries(kcm_icons ${KDE4_KIO_LIBS})
install(TARGETS kcm_icons DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_icons DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES icons.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES icons.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
install(FILES icons.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES icons.knsrc DESTINATION ${CONFIG_INSTALL_DIR})

View file

@ -6,7 +6,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
set(testicons_SRCS testicons.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../icons.cpp )
kde4_add_executable(testicons TEST ${testicons_SRCS})
add_executable(testicons TEST ${testicons_SRCS})
target_link_libraries(testicons ${KDE4_KDEUI_LIBS})

View file

@ -28,8 +28,9 @@ if(X11_Xcursor_FOUND)
xcursor/previewwidget.cpp
xcursor/itemdelegate.cpp
xcursor/sortproxymodel.cpp
../krdb/krdb.cpp )
kde4_add_ui_files( libnoinst_SRCS xcursor/themepage.ui )
../krdb/krdb.cpp
xcursor/themepage.ui
)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ )
else(X11_Xcursor_FOUND)
set( libnoinst_SRCS core/themepage.cpp )
@ -43,7 +44,7 @@ endif(X11_Xcursor_FOUND)
set(kapplymousetheme_SRCS kapplymousetheme.cpp )
kde4_add_executable(kapplymousetheme ${kapplymousetheme_SRCS})
add_executable(kapplymousetheme ${kapplymousetheme_SRCS})
target_link_libraries(kapplymousetheme
${KDE4_KDEUI_LIBS} ${X11_Xrender_LIB} ${X11_X11_LIB})
@ -56,10 +57,7 @@ install(TARGETS kapplymousetheme ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
set(kcm_input_PART_SRCS mouse.cpp main.cpp logitechmouse.cpp)
kde4_add_ui_files(kcm_input_PART_SRCS kmousedlg.ui logitechmouse_base.ui )
set(kcm_input_PART_SRCS mouse.cpp main.cpp logitechmouse.cpp kmousedlg.ui logitechmouse_base.ui )
kde4_add_plugin(kcm_input ${kcm_input_PART_SRCS})

View file

@ -1,9 +1,9 @@
########### next target ###############
set(kdebugconfig_SRCS
kdebugconfig.cpp)
kde4_add_ui_files(kdebugconfig_SRCS kdebugconfig.ui)
kdebugconfig.cpp
kdebugconfig.ui
)
kde4_add_plugin(kcm_kdebugconfig ${kdebugconfig_SRCS})

View file

@ -101,30 +101,30 @@ install( TARGETS keyboard_layout_widget DESTINATION ${PLUGIN_INSTALL_DIR} )
include_directories("preview")
set(kcm_keyboard_PART_SRCS
kcm_keyboard.cpp
kcm_keyboard_widget.cpp
kcm_view_models.cpp
kcm_add_layout_dialog.cpp
keyboard_config.cpp
x11_helper.cpp
xkb_helper.cpp
xkb_rules.cpp
flags.cpp
iso_codes.cpp
kcmmisc.cpp
bindings.cpp
preview/keyaliases.cpp
preview/keyboardlayout.cpp
preview/keyboardpainter.cpp
preview/keysymbols.cpp
preview/keysymhelper.cpp
preview/kbpreviewframe.cpp
preview/keysym2ucs.cpp
kcm_keyboard.cpp
kcm_keyboard_widget.cpp
kcm_view_models.cpp
kcm_add_layout_dialog.cpp
keyboard_config.cpp
x11_helper.cpp
xkb_helper.cpp
xkb_rules.cpp
flags.cpp
iso_codes.cpp
kcmmisc.cpp
bindings.cpp
preview/keyaliases.cpp
preview/keyboardlayout.cpp
preview/keyboardpainter.cpp
preview/keysymbols.cpp
preview/keysymhelper.cpp
preview/kbpreviewframe.cpp
preview/keysym2ucs.cpp
kcm_keyboard.ui
kcm_add_layout_dialog.ui
kcmmiscwidget.ui
)
kde4_add_ui_files(kcm_keyboard_PART_SRCS kcm_keyboard.ui kcm_add_layout_dialog.ui kcmmiscwidget.ui)
kde4_add_plugin(kcm_keyboard ${kcm_keyboard_PART_SRCS})
target_link_libraries(kcm_keyboard
@ -136,11 +136,9 @@ install(TARGETS kcm_keyboard DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES kcm_keyboard.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
# Images
add_subdirectory( pics )
# Unit tests
add_subdirectory( tests )
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()

View file

@ -23,6 +23,7 @@
#include <kaboutdata.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>
#include <kdialog.h>
#include <QtDBus/QDBusMessage>
#include <QtDBus/QDBusConnection>

View file

@ -34,7 +34,7 @@
#include <QtGui/qx11info_x11.h>
#include <klocale.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <knuminput.h>
#include <X11/Xlib.h>

View file

@ -1,18 +1,16 @@
########### next target ###############
set(kcm_keys_PART_SRCS
kglobalshortcutseditor.cpp
globalshortcuts.cpp
select_scheme_dialog.cpp
kglobalaccel_interface.cpp
kglobalaccel_component_interface.cpp
export_scheme_dialog.cpp
)
kde4_add_ui_files( kcm_keys_PART_SRCS
kglobalshortcutseditor.cpp
globalshortcuts.cpp
select_scheme_dialog.cpp
kglobalaccel_interface.cpp
kglobalaccel_component_interface.cpp
export_scheme_dialog.cpp
export_scheme_dialog.ui
kglobalshortcutseditor.ui
select_scheme_dialog.ui )
select_scheme_dialog.ui
)
set(kglobalaccel_xml ${KDE4_DBUS_INTERFACES_DIR}/org.kde.KGlobalAccel.xml)
set_source_files_properties(${kglobalaccel_xml} PROPERTIES INCLUDE "kglobalshortcutinfo_p.h")

View file

@ -1,29 +0,0 @@
2005-09-30 Benjamin Meyer
* Removed Command Shortcuts, it is already in kmenuedit
1999-08-19 Duncan Haldane <duncan@kde.org>
* removed left-over commented out code from change
decribed below, and adjusted help doc names to
index-1.html
1999-02-28 Duncan Haldane <duncan@kde.org>
* commented out those unnecessary debug calls.
in keyconfig.cpp
1998-12-19 Duncan Haldane <f.d.m.haldane@cwix.com>
* Converted global.cpp, global.h to keyconfig.cpp,
keyconfig.h, that can now be used to configure both
the standard keys and the global keys
in the same sophisticated manner as
global.cpp did for just the global keys.
* converted main.cpp to use keyconfig.cpp rather than
global.cpp and standard.cpp for standard and globall
key configuration. KGlobalConfig and KStdConfig disappear.
(KGlobalConfig is renamed to KKeyConfig)
* appropriate changes to Makefile.am.
* standard key binding are now #include'd from
stdbindings.cpp
* standard.cpp, standard.h are left here for now.
The entries that used to use them in main.cpp and
Makefile.am are just commented out for now.

View file

@ -20,6 +20,7 @@
#include "export_scheme_dialog.h"
#include <KDebug>
#include <KLocale>
#include <QtGui/QCheckBox>

View file

@ -22,6 +22,7 @@
#include "ui_export_scheme_dialog.h"
#include <QtGui/QButtonGroup>
#include <KDialog>
/**
* @author Michael Jansen <kde@michael-jansen.biz>

View file

@ -31,6 +31,7 @@
#include <KMessageBox>
#include <KShortcut>
#include <KStringHandler>
#include <KLocale>
#include <QtGui/QStackedWidget>
#include <QtGui/QMenu>

View file

@ -10,9 +10,9 @@ set(kfontinst_bin_SRCS ${libkfontinstjobrunner_SRCS} ${libkfontinstdbusiface_SRC
set(kfontprint_bin_SRCS ${libkfontinstactionlabel_SRCS} Printer.cpp )
set(kfontview_bin_SRCS Viewer.cpp )
kde4_add_executable(kfontinst_bin ${kfontinst_bin_SRCS})
kde4_add_executable(kfontprint_bin ${kfontprint_bin_SRCS})
kde4_add_executable(kfontview_bin ${kfontview_bin_SRCS})
add_executable(kfontinst_bin ${kfontinst_bin_SRCS})
add_executable(kfontprint_bin ${kfontprint_bin_SRCS})
add_executable(kfontview_bin ${kfontview_bin_SRCS})
set_target_properties(kfontinst_bin PROPERTIES OUTPUT_NAME kfontinst)
set_target_properties(kfontprint_bin PROPERTIES OUTPUT_NAME kfontprint)

View file

@ -10,8 +10,8 @@ set(fontinst_helper_SRCS FcConfig.cpp Helper.cpp Folder.cpp Utils.cpp ${libkfont
qt4_add_dbus_adaptor(fontinst_bin_SRCS org.kde.fontinst.xml FontInst.h KFI::FontInst)
# qt4_add_dbus_interface(fontinst_bin_SRCS org.kde.fontinst.xml FontinstIface)
kde4_add_executable(fontinst_bin ${fontinst_bin_SRCS})
kde4_add_executable(fontinst_helper ${fontinst_helper_SRCS})
add_executable(fontinst_bin ${fontinst_bin_SRCS})
add_executable(fontinst_helper ${fontinst_helper_SRCS})
set_target_properties(fontinst_bin PROPERTIES OUTPUT_NAME fontinst)
target_link_libraries(fontinst_bin ${KDE4_KDECORE_LIBS}

View file

@ -1,11 +1,11 @@
set(kfontinst_LIB_SRCS Misc.cpp Fc.cpp Family.cpp Style.cpp File.cpp WritingSystems.cpp)
set(kfontinstui_LIB_SRCS FcEngine.cpp )
kde4_add_library(kfontinst SHARED ${kfontinst_LIB_SRCS})
add_library(kfontinst SHARED ${kfontinst_LIB_SRCS})
target_link_libraries(kfontinst ${KDE4_KDECORE_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES})
set_target_properties(kfontinst PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
kde4_add_library(kfontinstui SHARED ${kfontinstui_LIB_SRCS})
add_library(kfontinstui SHARED ${kfontinstui_LIB_SRCS})
target_link_libraries(kfontinstui ${KDE4_KIO_LIBS} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${X11_X11_LIB} ${X11_Xft_LIB} kfontinst )
set_target_properties(kfontinstui PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS kfontinst kfontinstui ${INSTALL_TARGETS_DEFAULT_ARGS} )

View file

@ -2,7 +2,7 @@ include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcontrol/kfontinst/lib/
${STRIGI_INCLUDE_DIR}
)
kde4_add_library(font MODULE FontThroughAnalyzer.cpp FontEngine.cpp )
add_library(font MODULE FontThroughAnalyzer.cpp FontEngine.cpp )
target_link_libraries(font ${STRIGI_STREAMANALYZER_LIBRARY} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${KDE4_KIO_LIBS} kfontinst )

View file

@ -1,21 +1,17 @@
########### next target ###############
set(kcm_knotify_PART_SRCS knotify.cpp )
kde4_add_ui_files(kcm_knotify_PART_SRCS playersettings.ui )
set(kcm_knotify_PART_SRCS knotify.cpp playersettings.ui )
kde4_add_plugin(kcm_knotify ${kcm_knotify_PART_SRCS})
target_link_libraries(kcm_knotify ${KDE4_KIO_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS} ${QT_QTGUI_LIBRARY})
target_link_libraries(kcm_knotify ${KDE4_KIO_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS} ${QT_QTGUI_LIBRARY} )
install(TARGETS kcm_knotify DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_knotify DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES kcmnotify.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES kcmnotify.desktop DESTINATION ${SERVICES_INSTALL_DIR})

View file

@ -31,7 +31,7 @@
#include <kapplication.h>
#include <kaboutdata.h>
#include <kcombobox.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <knotifyconfigwidget.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>

View file

@ -3,9 +3,7 @@ add_subdirectory( pics )
########### next target ###############
set(kcm_locale_PART_SRCS kcmlocale.cpp)
kde4_add_ui_files(kcm_locale_PART_SRCS kcmlocalewidget.ui )
set(kcm_locale_PART_SRCS kcmlocale.cpp kcmlocalewidget.ui )
kde4_add_plugin(kcm_locale ${kcm_locale_PART_SRCS})

View file

@ -27,20 +27,17 @@ endif( XRANDR_1_2_FOUND )
set(kcm_randr_PART_SRCS
krandrmodule.cpp
legacyrandrconfig.cpp
${randrinternal_PART_SRCS})
kde4_add_ui_files(kcm_randr_PART_SRCS
${randrinternal_PART_SRCS}
legacyrandrconfigbase.ui
randrconfigbase.ui
outputconfigbase.ui)
outputconfigbase.ui
)
kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
target_link_libraries(kcm_randr ${KDE4_KDEUI_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
install(TARGETS kcm_randr DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_randr DESTINATION ${PLUGIN_INSTALL_DIR})
########### next target ###############
@ -49,14 +46,12 @@ set(krandrtray_SRCS
main.cpp
krandrtray.cpp
krandrapp.cpp
krandrpassivepopup.cpp ${randrinternal_PART_SRCS})
kde4_add_ui_files(krandrtray_SRCS
krandrpassivepopup.cpp ${randrinternal_PART_SRCS}
randrconfigbase.ui
outputconfigbase.ui)
outputconfigbase.ui
)
kde4_add_executable(krandrtray ${krandrtray_SRCS})
add_executable(krandrtray ${krandrtray_SRCS})
target_link_libraries(krandrtray ${KDE4_KCMUTILS_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})

View file

@ -1,34 +0,0 @@
- XRRQueryExtension returns Bool, not Status
- Fix crash where Qt's QDesktopWidget returns multiple Xinerama screens;
if we are being managed by RANDR, this number may be greater than the
- Fix a few memory leaks and uninitialized variables thanks to valgrind.
- Use the proper Xrandr.h macros for rotation and reflection masks in the
actual number of screens as reported by ScreenCount in Xlib.
RandR::Orientations enum.
- Don't remove the OutputGraphicsItems from a scene if they do not belong
to it (why does QGraphicsScene return them in ::items() if they don't
exist in the scene???)
- Add some useful accessors to OutputConfig to grab user configuration
values for resolution, refresh rate, etc.
- Add preliminary multi-monitor ability; you can now set the absolute position
of any screen. Setting any other relationship other than "Absolute" currently
clones all outputs to the largest display.
- Remove the "Active" checkbox and add a "Disabled" option in the resolution
combo box instead; removes clutter and is clearer.
- Add the ability to get the preferred mode of a given connected output.
- Mark the preferred output mode (resolution) of a user as (Auto)
- Add missing proposeRefreshRate to RandROutput (was only in RandRCrtc)
- Remove performApplyOnStartup for KRandRModule - this makes sense for
krandrtray, which likely starts up with KDE4, but not for opening the
KCModule, which should keep the active settings until the user makes a change.
- Remove some of my unnecessary output relationship code; found a much better
way to do it :)
- More i18n contexts.
- The tray doesn't need to force querying infomation about each display/screen/
output/crtc every time it prepares the context menu; it can receive randr
events for a reason.
- Temporarily disable the logic to use the legacy RANDR API if the user has
RANDR 1.2 but only one RROutput; this seems silly.
- Clean up the RandROutput and RandRCrtc APIs to use the proper RandR*
classes instead of RRMode/Crtc/Output IDs from Xrandr.h to avoid
headaches.

View file

@ -10,15 +10,12 @@ set(kcm_screensaver_PART_SRCS
scrnsave.cpp
testwin.cpp
saverconfig.cpp
kswidget.cpp)
kswidget.cpp
screensaver.ui)
set(kscreensaver_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/screenlocker/dbus/org.kde.screensaver.xml)
QT4_ADD_DBUS_INTERFACE( kcm_screensaver_PART_SRCS ${kscreensaver_xml} kscreensaver_interface )
kde4_add_ui_files(kcm_screensaver_PART_SRCS screensaver.ui )
kde4_add_plugin(kcm_screensaver ${kcm_screensaver_PART_SRCS})

View file

@ -7,10 +7,13 @@ include_directories (
########### next target ###############
set(kcm_style_PART_SRCS ../krdb/krdb.cpp styleconfdialog.cpp kcmstyle.cpp)
kde4_add_ui_files(kcm_style_PART_SRCS stylepreview.ui finetuning.ui)
set(kcm_style_PART_SRCS
../krdb/krdb.cpp
styleconfdialog.cpp
kcmstyle.cpp
stylepreview.ui
finetuning.ui
)
kde4_add_plugin(kcm_style ${kcm_style_PART_SRCS})

View file

@ -1,2 +1 @@
kde4_install_icons(${ICON_INSTALL_DIR})
kde4_update_iconcache()

View file

@ -18,23 +18,18 @@ set(SRCS
kcm/touchpadconfig.cpp
kcm/touchpadparametersbase.cpp
kcm/customconfigdialogmanager.cpp
kcm/pointermotion.ui
kcm/tap.ui
kcm/scroll.ui
kcm/sensitivity.ui
kcm/kded.ui
kcm/testarea.ui
)
qt4_add_dbus_interfaces(SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.touchpad.xml
)
qt4_add_dbus_interfaces(SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.touchpad.xml)
kde4_add_kcfg_files(SRCS kcm/touchpadparameters.kcfgc)
kde4_add_ui_files(SRCS
kcm/ui/pointermotion.ui
kcm/ui/tap.ui
kcm/ui/scroll.ui
kcm/ui/sensitivity.ui
kcm/ui/kded.ui
kcm/ui/testarea.ui
)
qt4_generate_dbus_interface(kded/kded.h org.kde.touchpad.xml)
SET(SRCS

View file

@ -24,6 +24,7 @@
#include <QStandardItemModel>
#include <KLocale>
#include <KIcon>
#include <Plasma/Theme>
TestArea::TestArea(QWidget *parent) : QWidget(parent)

View file

@ -1,7 +1,6 @@
########### next target ###############
set(kcm_workspaceoptions_PART_SRCS workspaceoptions.cpp )
kde4_add_ui_files(kcm_workspaceoptions_PART_SRCS mainpage.ui)
set(kcm_workspaceoptions_PART_SRCS workspaceoptions.cpp mainpage.ui)
kde4_add_plugin(kcm_workspaceoptions ${kcm_workspaceoptions_PART_SRCS})

View file

@ -29,6 +29,7 @@
#include <KRun>
#include <KStandardDirs>
#include <KUrl>
#include <KConfigGroup>
using namespace KAuth;

View file

@ -1,5 +1,5 @@
kde4_add_executable(kde4-menu NOGUI kde-menu.cpp)
add_executable(kde4-menu kde-menu.cpp)
target_link_libraries(kde4-menu ${KDE4_KIO_LIBS})

View file

@ -7,7 +7,7 @@
set(kdesu_SRCS kdesu.cpp sudlg.cpp )
kde4_add_executable(kdesu_executable ${kdesu_SRCS})
add_executable(kdesu_executable ${kdesu_SRCS})
# in KDELibsDependencies.cmake installed by kdelibs there is a dependency to "kdesu"
# which is then recognized here as the target name for this executable
# so give the target here a different name and use the OUTPUT_NAME property to

View file

@ -11,7 +11,7 @@ set(kdesud_SRCS
handler.cpp
secure.cpp )
kde4_add_executable(kdesud NOGUI ${kdesud_SRCS})
add_executable(kdesud ${kdesud_SRCS})
target_link_libraries(kdesud ${KDE4_KDESU_LIBS} ${KDE4_KDECORE_LIBS} ${X11_LIBRARIES})

View file

@ -1,79 +1,76 @@
set(kdm_SRCS
dm.h
auth.c
bootman.c
client.c
ctrl.c
daemon.c
dm.c
dpylist.c
error.c
genauth.c
inifile.c
netaddr.c
process.c
reset.c
resource.c
server.c
session.c
sessreg.c
socket.c
streams.c
util.c
dm.h
auth.c
bootman.c
client.c
ctrl.c
daemon.c
dm.c
dpylist.c
error.c
genauth.c
inifile.c
netaddr.c
process.c
reset.c
resource.c
server.c
session.c
sessreg.c
socket.c
streams.c
util.c
)
if (XDMCP)
set(kdm_SRCS ${kdm_SRCS}
access.c
choose.c
protodpy.c
policy.c
xdmcp.c
)
set(kdm_SRCS ${kdm_SRCS}
access.c
choose.c
protodpy.c
policy.c
xdmcp.c
)
endif (XDMCP)
if (HASXDMAUTH)
set(kdm_SRCS ${kdm_SRCS}
xdmauth.c
)
set(kdm_SRCS ${kdm_SRCS} xdmauth.c)
endif (HASXDMAUTH)
if (K5AUTH)
set(kdm_SRCS ${kdm_SRCS}
krb5auth.c
)
set(kdm_SRCS ${kdm_SRCS} krb5auth.c)
endif (K5AUTH)
if (SECURE_RPC)
set(kdm_SRCS ${kdm_SRCS}
rpcauth.c
)
set(kdm_SRCS ${kdm_SRCS} rpcauth.c)
endif (SECURE_RPC)
macro_add_file_dependencies(dm.h ${confci})
macro_add_file_dependencies(error.c ${CMAKE_CURRENT_SOURCE_DIR}/printf.c)
kde4_add_executable(kdm NOGUI ${kdm_SRCS})
macro_add_compile_flags(kdm -U_REENTRANT)
target_link_libraries( kdm
${X11_X11_LIB} ${X11_Xau_LIB} ${X11_Xdmcp_LIB} ${X11_X_EXTRA_LIBS}
${UNIXAUTH_LIBRARIES}
${SHADOW_LIBRARIES}
${S_LIBRARIES}
${KRB4_LIBRARIES}
${KRB5_LIBRARIES}
${COMERR_LIBRARY}
${NSL_LIBRARIES}
${RESOLV_LIBRARIES}
${SOCKET_LIBRARIES}
add_executable(kdm ${kdm_SRCS})
add_definitions(-U_REENTRANT)
target_link_libraries(kdm
${X11_X11_LIB}
${X11_Xau_LIB}
${X11_Xdmcp_LIB}
${X11_X_EXTRA_LIBS}
${UNIXAUTH_LIBRARIES}
${SHADOW_LIBRARIES}
${S_LIBRARIES}
${KRB4_LIBRARIES}
${KRB5_LIBRARIES}
${COMERR_LIBRARY}
${NSL_LIBRARIES}
${RESOLV_LIBRARIES}
${SOCKET_LIBRARIES}
)
if (CKCONNECTOR_FOUND)
include_directories(${CKCONNECTOR_INCLUDE_DIR} ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
target_link_libraries( kdm ${CKCONNECTOR_LIBRARIES} ${DBUS_LIBRARIES} )
if(CKCONNECTOR_FOUND)
include_directories(${CKCONNECTOR_INCLUDE_DIR} ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
target_link_libraries(kdm ${CKCONNECTOR_LIBRARIES} ${DBUS_LIBRARIES})
endif (CKCONNECTOR_FOUND)
if(UTIL_LIBRARIES)
target_link_libraries( kdm ${UTIL_LIBRARIES} )
target_link_libraries(kdm ${UTIL_LIBRARIES})
endif(UTIL_LIBRARIES)
target_link_libraries( kdm ${POSIX4_LIBRARIES} )
target_link_libraries(kdm ${POSIX4_LIBRARIES})
if(QT_RT_LIBRARY)
target_link_libraries( kdm ${QT_RT_LIBRARY} )
target_link_libraries(kdm ${QT_RT_LIBRARY})
endif(QT_RT_LIBRARY)
add_dependencies( kdm ConfigCi )
add_dependencies(kdm ConfigCi)
install(TARGETS kdm ${INSTALL_TARGETS_DEFAULT_ARGS})

View file

@ -22,7 +22,7 @@ add_dependencies(kcm_kdm ConfigCi)
install(TARGETS kcm_kdm DESTINATION ${PLUGIN_INSTALL_DIR})
#### KAuth helper and actions ####
kde4_add_executable(kcmkdmhelper helper.cpp)
add_executable(kcmkdmhelper helper.cpp)
target_link_libraries(kcmkdmhelper ${KDE4_KDECORE_LIBS})
install(TARGETS kcmkdmhelper DESTINATION ${LIBEXEC_INSTALL_DIR})

View file

@ -68,7 +68,7 @@ if (WITH_KDM_XCONSOLE)
endif (WITH_KDM_XCONSOLE)
macro_add_file_dependencies(kdmconfig.h ${confci})
kde4_add_executable(kdm_greet ${kdm_greet_SRCS})
add_executable(kdm_greet ${kdm_greet_SRCS})
target_link_libraries(kdm_greet ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY} ${X11_X11_LIB} ${POSIX4_LIBRARIES})
if (X11_XTest_FOUND)
target_link_libraries(kdm_greet ${X11_XTest_LIB})
@ -81,7 +81,7 @@ install(TARGETS kdm_greet DESTINATION ${LIBEXEC_INSTALL_DIR})
set(kdm_config_SRCS kdm_config.c)
macro_add_file_dependencies(kdm_config.c ${confci})
kde4_add_executable(kdm_config NOGUI ${kdm_config_SRCS})
add_executable(kdm_config ${kdm_config_SRCS})
macro_add_compile_flags(kdm_config -U_REENTRANT)
target_link_libraries(kdm_config ${SOCKET_LIBRARIES} ${RESOLV_LIBRARIES} ${POSIX4_LIBRARIES})
add_dependencies(kdm_config ConfigCi)
@ -89,14 +89,14 @@ install(TARGETS kdm_config DESTINATION ${LIBEXEC_INSTALL_DIR})
set(genkdmconf_SRCS genkdmconf.c)
macro_add_file_dependencies(genkdmconf.c ${confci})
kde4_add_executable(genkdmconf NOGUI ${genkdmconf_SRCS})
add_executable(genkdmconf ${genkdmconf_SRCS})
macro_add_compile_flags(genkdmconf -U_REENTRANT)
target_link_libraries(genkdmconf ${X11_LIBRARIES})
add_dependencies(genkdmconf ConfigCi)
install(TARGETS genkdmconf ${INSTALL_TARGETS_DEFAULT_ARGS})
set(kdmctl_SRCS kdmctl.c)
kde4_add_executable(kdmctl ${kdmctl_SRCS})
add_executable(kdmctl ${kdmctl_SRCS})
macro_add_compile_flags(kdmctl -U_REENTRANT)
target_link_libraries(kdmctl ${SOCKET_LIBRARIES})
add_dependencies(kdmctl ConfigCi)

View file

@ -1,5 +1,5 @@
set(kdontchangethehostname_SRCS khostname.cpp )
kde4_add_executable(kdontchangethehostname NOGUI ${kdontchangethehostname_SRCS})
target_link_libraries(kdontchangethehostname ${KDE4_KDECORE_LIBS} )
install(TARGETS kdontchangethehostname DESTINATION ${LIBEXEC_INSTALL_DIR} )
add_executable(kdontchangethehostname ${kdontchangethehostname_SRCS})
target_link_libraries(kdontchangethehostname ${KDE4_KDECORE_LIBS})
install(TARGETS kdontchangethehostname DESTINATION ${LIBEXEC_INSTALL_DIR})

View file

@ -1,16 +1,17 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set(libfiletypes_SRCS
filetypedetails.cpp
filegroupdetails.cpp
kservicelistwidget.cpp
typeslistitem.cpp
mimetypedata.cpp
mimetypewriter.cpp
newtypedlg.cpp
kserviceselectdlg.cpp
sharedmimeinfoversion.cpp
filetypedetails.cpp
filegroupdetails.cpp
kservicelistwidget.cpp
typeslistitem.cpp
mimetypedata.cpp
mimetypewriter.cpp
newtypedlg.cpp
kserviceselectdlg.cpp
sharedmimeinfoversion.cpp
)
########### next target ###############
@ -27,7 +28,7 @@ install(TARGETS kcm_filetypes DESTINATION ${PLUGIN_INSTALL_DIR} )
set(keditfiletype_SRCS keditfiletype.cpp ${libfiletypes_SRCS})
kde4_add_executable(keditfiletype ${keditfiletype_SRCS})
add_executable(keditfiletype ${keditfiletype_SRCS})
target_link_libraries(keditfiletype ${KDE4_KIO_LIBS})
if (Q_WS_X11)

View file

@ -1,10 +1,6 @@
########### kfile4 ###############
# Named this way to fix conflict with kdelibs3.
# Distros can add a kfile symlink if kdelibs3 isn't installed.
set(kfile_SRCS fileprops.cpp )
kde4_add_executable(kfile4 NOGUI ${kfile_SRCS})
add_executable(kfile4 ${kfile_SRCS})
target_link_libraries(kfile4 ${KDE4_KIO_LIBS} )

View file

@ -25,7 +25,7 @@ if ( Q_WS_X11 )
set( kglobalaccel_SRCS ${kglobalaccel_SRCS} kglobalaccel_x11.cpp )
endif ( Q_WS_X11 )
kde4_add_executable( kglobalaccel NOGUI ${kglobalaccel_SRCS} )
add_executable( kglobalaccel ${kglobalaccel_SRCS} )
target_link_libraries(kglobalaccel ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${X11_LIBRARIES})
# Install application and configuration

View file

@ -40,11 +40,8 @@ set(
hotkeys_widget_base.cpp
action_group_widget.cpp
simple_action_data_widget.cpp
)
kde4_add_ui_files(
kcm_hotkeys_PART_SRCS
# USER INTERFACES
global_settings_widget.ui
hotkeys_export_widget.ui
kcm_hotkeys.ui

View file

@ -26,7 +26,7 @@
#include <KDesktopFile>
#include <KGlobal>
#include <KStandardDirs>
#include <KConfigGroup>
GlobalSettingsWidget::GlobalSettingsWidget( QWidget *parent )
: HotkeysWidgetIFace( parent )

View file

@ -24,7 +24,7 @@
#include "ui_window_definition_list_widget.h"
#include "windows_helper/window_selection_list.h"
#include <KDialog>
/**
* @author Michael Jansen <kde@michael-jansen.biz>

View file

@ -19,6 +19,8 @@
#include "hotkeys_export_widget.h"
#include <KLocale>
KHotkeysExportWidget::KHotkeysExportWidget(QWidget *parent)
: QWidget(parent)
{

View file

@ -69,7 +69,7 @@ set(khotkeysprivate_SRCS
# voicesignature.cpp
)
kde4_add_library(khotkeysprivate SHARED ${khotkeysprivate_SRCS})
add_library(khotkeysprivate SHARED ${khotkeysprivate_SRCS})
target_link_libraries(khotkeysprivate kworkspace ${KDE4_KIO_LIBS} ${X11_LIBRARIES})
if(X11_XTest_FOUND)
target_link_libraries(khotkeysprivate ${X11_XTest_LIB})

View file

@ -1,4 +1,4 @@
kde4_add_executable(kiconfinder NOGUI kiconfinder.cpp)
add_executable(kiconfinder kiconfinder.cpp)
target_link_libraries(kiconfinder ${KDE4_KDEUI_LIBS})

View file

@ -9,20 +9,20 @@ add_subdirectory( Modules )
INCLUDE_DIRECTORIES( ToolTips )
set( kinfocenter_SRCS
infocenter.cpp
main.cpp
sidepanel.cpp
kcmcontainer.cpp
kcmtreeitem.cpp
kcmcategoryitem.cpp
infokcmmodel.cpp
infokcmproxymodel.cpp
ToolTips/ktooltip.cpp
ToolTips/ktooltipwindow.cpp
ToolTips/tooltipmanager.cpp
infocenter.cpp
main.cpp
sidepanel.cpp
kcmcontainer.cpp
kcmtreeitem.cpp
kcmcategoryitem.cpp
infokcmmodel.cpp
infokcmproxymodel.cpp
ToolTips/ktooltip.cpp
ToolTips/ktooltipwindow.cpp
ToolTips/tooltipmanager.cpp
)
kde4_add_executable( kinfocenter ${kinfocenter_SRCS} )
add_executable( kinfocenter ${kinfocenter_SRCS} )
target_link_libraries( kinfocenter ${KDE4_KFILE_LIBS} ${KDE4_KCMUTILS_LIBS} )

View file

@ -1,22 +1,16 @@
########### next target ###############
set(kcm_view1394_PART_SRCS view1394.cpp )
kde4_add_ui_files(kcm_view1394_PART_SRCS view1394widget.ui )
set(kcm_view1394_PART_SRCS view1394.cpp view1394widget.ui)
kde4_add_plugin(kcm_view1394 ${kcm_view1394_PART_SRCS})
target_link_libraries(kcm_view1394 ${KDE4_KDEUI_LIBS} ${RAW1394_LIBRARIES} )
target_link_libraries(kcm_view1394 ${KDE4_KDEUI_LIBS} ${RAW1394_LIBRARIES})
install(TARGETS kcm_view1394 DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kcm_view1394 DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES kcmview1394.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES oui.db DESTINATION ${DATA_INSTALL_DIR}/kcmview1394 )
install(FILES kcmview1394.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES oui.db DESTINATION ${DATA_INSTALL_DIR}/kcmview1394)

View file

@ -1,30 +1,30 @@
set(kioclient_SRCS kioclient.cpp )
kde4_add_executable(kioclient NOGUI ${kioclient_SRCS})
macro_add_compile_flags(kioclient -DKIOCLIENT_AS_KIOCLIENT)
add_executable(kioclient ${kioclient_SRCS})
target_compile_definitions(kioclient PRIVATE -DKIOCLIENT_AS_KIOCLIENT)
target_link_libraries(kioclient ${KDE4_KIO_LIBS})
install(TARGETS kioclient ${INSTALL_TARGETS_DEFAULT_ARGS})
################
set(kde-open_SRCS kioclient.cpp )
kde4_add_executable(kde-open NOGUI ${kde-open_SRCS})
macro_add_compile_flags(kde-open -DKIOCLIENT_AS_KDEOPEN)
add_executable(kde-open ${kde-open_SRCS})
target_compile_definitions(kde-open PRIVATE -DKIOCLIENT_AS_KDEOPEN)
target_link_libraries(kde-open ${KDE4_KIO_LIBS})
install(TARGETS kde-open ${INSTALL_TARGETS_DEFAULT_ARGS})
################
set(kde-cp_SRCS kioclient.cpp )
kde4_add_executable(kde-cp NOGUI ${kde-cp_SRCS})
macro_add_compile_flags(kde-cp -DKIOCLIENT_AS_KDECP)
add_executable(kde-cp ${kde-cp_SRCS})
target_compile_definitions(kde-cp PRIVATE -DKIOCLIENT_AS_KDECP)
target_link_libraries(kde-cp ${KDE4_KIO_LIBS})
install(TARGETS kde-cp ${INSTALL_TARGETS_DEFAULT_ARGS})
################
set(kde-mv_SRCS kioclient.cpp )
kde4_add_executable(kde-mv NOGUI ${kde-mv_SRCS})
macro_add_compile_flags(kde-mv -DKIOCLIENT_AS_KDEMV)
add_executable(kde-mv ${kde-mv_SRCS})
target_compile_definitions(kde-mv PRIVATE -DKIOCLIENT_AS_KDEMV)
target_link_libraries(kde-mv ${KDE4_KIO_LIBS})
install(TARGETS kde-mv ${INSTALL_TARGETS_DEFAULT_ARGS})

View file

@ -1,7 +1,6 @@
set(kioexec_SRCS main.cpp )
kde4_add_executable(kioexec NOGUI ${kioexec_SRCS})
add_executable(kioexec ${kioexec_SRCS})
target_link_libraries(kioexec ${KDE4_KIO_LIBS})

View file

@ -1,4 +1,6 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
########### kio_archive ###############

View file

@ -1,5 +1,6 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
########### next target ###############

View file

@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES( ${KDE4_INCLUDES} . )
SET( copytesterSources main.cpp copytester.cpp )
KDE4_ADD_EXECUTABLE( copytester ${copytesterSources} )
add_executable( copytester ${copytesterSources} )
TARGET_LINK_LIBRARIES( copytester ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} )

View file

@ -65,7 +65,7 @@ if(SLP_FOUND)
set( molletnetwork_LINK_LIBS ${molletnetwork_LINK_LIBS} ${SLP_LIBRARIES} )
endif(SLP_FOUND)
kde4_add_library( molletnetwork SHARED ${molletnetwork_LIB_SRCS} )
add_library( molletnetwork SHARED ${molletnetwork_LIB_SRCS} )
target_link_libraries( molletnetwork ${molletnetwork_LINK_LIBS} )
set_target_properties( molletnetwork PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )

View file

@ -1,28 +1,24 @@
add_subdirectory( kdedmodule )
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
add_subdirectory( kdedmodule )
add_subdirectory( tests )
set(libkioremote_SRCS kio_remote.cpp remoteimpl.cpp )
set(libkioremote_SRCS kio_remote.cpp remoteimpl.cpp)
########### next target ###############
set(kio_remote_PART_SRCS ${libkioremote_SRCS})
kde4_add_plugin(kio_remote ${kio_remote_PART_SRCS})
target_link_libraries(kio_remote ${KDE4_KIO_LIBS})
install(TARGETS kio_remote DESTINATION ${PLUGIN_INSTALL_DIR} )
install(TARGETS kio_remote DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES remote.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES remote.protocol DESTINATION ${SERVICES_INSTALL_DIR})

View file

@ -6,7 +6,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
set(testremote_SRCS testremote.cpp ${libkioremote_SRCS} )
kde4_add_executable(testremote TEST ${testremote_SRCS})
add_executable(testremote TEST ${testremote_SRCS})
target_link_libraries(testremote ${KDE4_KIO_LIBS} )

View file

@ -1,10 +1,13 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set (trashcommon_PART_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/trashimpl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/discspaceutil.cpp
${CMAKE_CURRENT_SOURCE_DIR}/trashsizecache.cpp
${CMAKE_CURRENT_SOURCE_DIR}/kinterprocesslock.cpp
)
set(trashcommon_PART_SRCS
trashimpl.cpp
discspaceutil.cpp
trashsizecache.cpp
kinterprocesslock.cpp
)
########### next target ###############
@ -22,8 +25,7 @@ endif(NOT MINGW)
set(ktrash_SRCS ktrash.cpp )
kde4_add_executable(ktrash NOGUI ${ktrash_SRCS})
add_executable(ktrash ${ktrash_SRCS})
target_link_libraries(ktrash ${KDE4_KIO_LIBS} )

View file

@ -20,6 +20,6 @@ target_link_libraries(testtrash ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS} ${QT_QTTEST_
set(lockingtest_SRCS lockingtest.cpp ../kinterprocesslock.cpp )
kde4_add_executable(lockingtest NOGUI ${lockingtest_SRCS})
add_executable(lockingtest NOGUI ${lockingtest_SRCS})
target_link_libraries(lockingtest ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})

View file

@ -12,6 +12,9 @@ set(libklipper_common_SRCS
actionstreewidget.cpp
editactiondialog.cpp
clipcommandprocess.cpp
generalconfig.ui
actionsconfig.ui
editactiondialog.ui
)
macro_optional_find_package(Prison QUIET CONFIG)
@ -25,15 +28,12 @@ if (PRISON_FOUND)
include_directories(${PRISON_INCLUDE_DIR})
endif (PRISON_FOUND)
kde4_add_app_icon(libklipper_common_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/klipper.png")
kde4_add_ui_files(libklipper_common_SRCS generalconfig.ui actionsconfig.ui editactiondialog.ui)
kde4_add_kcfg_files(libklipper_common_SRCS klippersettings.kcfgc)
set(klipper_SRCS ${libklipper_common_SRCS} main.cpp tray.cpp)
kde4_add_executable(klipper ${klipper_SRCS})
add_executable(klipper ${klipper_SRCS})
target_link_libraries(klipper ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES} ${ZLIB_LIBRARY})
if (X11_Xfixes_FOUND)

View file

@ -24,6 +24,7 @@
#include <QtGui/QComboBox>
#include <KDebug>
#include <KLocale>
#include "urlgrabber.h"
#include "ui_editactiondialog.h"

View file

@ -13,7 +13,7 @@ qt4_add_dbus_interface(
set(kmenuedit_SRCS main.cpp ${kmenueditcommon_STAT_SRCS})
kde4_add_executable(kmenuedit ${kmenuedit_SRCS})
add_executable(kmenuedit ${kmenuedit_SRCS})
target_link_libraries(kmenuedit ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTDBUS_LIBRARY})

View file

@ -1,4 +1,4 @@
kde4_add_executable(kmimetypefinder NOGUI kmimetypefinder.cpp)
add_executable(kmimetypefinder kmimetypefinder.cpp)
target_link_libraries(kmimetypefinder ${KDE4_KDECORE_LIBS})

View file

@ -1,20 +1,15 @@
set(knetattach_SRCS main.cpp knetattach.cpp)
set(knetattach_SRCS main.cpp knetattach.cpp knetattach.ui )
add_executable(knetattach ${knetattach_SRCS})
kde4_add_ui_files(knetattach_SRCS knetattach.ui )
kde4_add_app_icon(knetattach_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-knetattach.png")
kde4_add_executable(knetattach ${knetattach_SRCS})
target_link_libraries(knetattach ${KDE4_KIO_LIBS} )
target_link_libraries(knetattach ${KDE4_KIO_LIBS})
install(TARGETS knetattach DESTINATION ${LIBEXEC_INSTALL_DIR})
########### install files ###############
install( PROGRAMS knetattach.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install(PROGRAMS knetattach.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
kde4_install_icons( ${ICON_INSTALL_DIR} )
kde4_install_icons(${ICON_INSTALL_DIR})

View file

@ -28,7 +28,7 @@
#include <KIcon>
#include <KLocale>
#include <KGlobalSettings>
#include <KConfig>
#include <KConfigGroup>
#include <KStandardDirs>
#include <KDirNotify>
#include <KCharsets>

View file

@ -16,24 +16,22 @@ ksolidnotify.cpp
)
set(knotifyplugin_SRCS
knotifyplugin.cpp
knotifyconfig.cpp
knotifyplugin.cpp
knotifyconfig.cpp
)
set(knotifyplugin_HEADERS
knotifyplugin.h
knotifyconfig.h
knotify_export.h
knotifyplugin.h
knotifyconfig.h
knotify_export.h
)
qt4_add_dbus_interfaces(knotify_SRCS ${KDE4_DBUS_INTERFACES_DIR}/org.kde.KSpeech.xml)
kde4_add_app_icon(knotify_SRCS "${CMAKE_SOURCE_DIR}/pics/oxygen/*/apps/preferences-desktop-notification.png")
set (knotify_OUTPUT_NAME knotify4)
kde4_add_executable( knotify ${knotify_SRCS})
add_executable( knotify ${knotify_SRCS})
kde4_add_library( knotifyplugin SHARED ${knotifyplugin_SRCS})
add_library( knotifyplugin SHARED ${knotifyplugin_SRCS})
target_link_libraries( knotify ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS} ${KDE4_SOLID_LIBS} knotifyplugin)

View file

@ -1,4 +1,6 @@
add_subdirectory(tests)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set(kded_kpasswdserver_SRCS kpasswdserver.cpp )

View file

@ -1,7 +1,7 @@
set(kquitapp_SRCS kquitapp.cpp)
set(kquitapp_OUTPUT_NAME kquitapp)
kde4_add_executable(kquitapp_executable NOGUI ${kquitapp_SRCS})
add_executable(kquitapp_executable ${kquitapp_SRCS})
set_target_properties(kquitapp_executable PROPERTIES OUTPUT_NAME kquitapp)
target_link_libraries(kquitapp_executable ${KDE4_KDECORE_LIBS})

View file

@ -1,13 +1,8 @@
########### next target ###############
set(kreadconfig_SRCS kreadconfig.cpp )
kde4_add_executable(kreadconfig NOGUI ${kreadconfig_SRCS})
add_executable(kreadconfig ${kreadconfig_SRCS})
target_link_libraries(kreadconfig ${KDE4_KDECORE_LIBS} )
@ -18,8 +13,7 @@ install(TARGETS kreadconfig ${INSTALL_TARGETS_DEFAULT_ARGS})
set(kwriteconfig_SRCS kwriteconfig.cpp )
kde4_add_executable(kwriteconfig NOGUI ${kwriteconfig_SRCS})
add_executable(kwriteconfig ${kwriteconfig_SRCS})
target_link_libraries(kwriteconfig ${KDE4_KDECORE_LIBS} )

View file

@ -35,9 +35,10 @@ set(krunner_SRCS
krunnerapp.cpp
main.cpp
${default_interface_SRCS}
${quicksand_interface_SRCS})
${quicksand_interface_SRCS}
interfaceOptions.ui
)
kde4_add_ui_files(krunner_SRCS interfaceOptions.ui)
kde4_add_kcfg_files(krunner_SRCS ${krunner_KCFG_SRCS})
qt4_add_dbus_adaptor(krunner_SRCS ${krunner_dbusAppXML} krunnerapp.h KRunnerApp)
@ -50,7 +51,7 @@ set(krunner_SRCS
ksystemactivitydialog.cpp
startupid.cpp)
kde4_add_executable(krunner ${krunner_SRCS})
add_executable(krunner ${krunner_SRCS})
target_link_libraries(krunner kworkspace plasmagenericshell processui
${KDE4_PLASMA_LIBS} ${KDE4_SOLID_LIBRARIES}

View file

@ -7,7 +7,7 @@ include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kscreensaver/libkscreensave
set(kblankscrn.kss_SRCS blankscrn.cpp )
kde4_add_executable(kblankscrn.kss ${kblankscrn.kss_SRCS})
add_executable(kblankscrn.kss ${kblankscrn.kss_SRCS})
target_link_libraries(kblankscrn.kss ${KDE4_KDEUI_LIBS} kscreensaver m )

View file

@ -18,7 +18,7 @@ SET(LIBMATH "m")
set(kbanner.kss_SRCS banner.cpp )
kde4_add_executable(kbanner.kss ${kbanner.kss_SRCS})
add_executable(kbanner.kss ${kbanner.kss_SRCS})
target_link_libraries(kbanner.kss ${KDE4_KDEUI_LIBS} kscreensaver)
@ -29,7 +29,7 @@ install(TARGETS kbanner.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kpolygon.kss_SRCS polygon.cpp )
kde4_add_executable(kpolygon.kss ${kpolygon.kss_SRCS})
add_executable(kpolygon.kss ${kpolygon.kss_SRCS})
target_link_libraries(kpolygon.kss ${KDE4_KDEUI_LIBS} kscreensaver)
@ -38,11 +38,9 @@ install(TARGETS kpolygon.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### next target ###############
set(kslideshow.kss_SRCS slideshow.cpp )
set(kslideshow.kss_SRCS slideshow.cpp slideshowcfg.ui )
kde4_add_ui_files(kslideshow.kss_SRCS slideshowcfg.ui )
kde4_add_executable(kslideshow.kss ${kslideshow.kss_SRCS})
add_executable(kslideshow.kss ${kslideshow.kss_SRCS})
macro_bool_to_01(KEXIV2_FOUND HAVE_KEXIV2)
@ -61,7 +59,7 @@ install(TARGETS kslideshow.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(klines.kss_SRCS lines.cpp )
kde4_add_executable(klines.kss ${klines.kss_SRCS})
add_executable(klines.kss ${klines.kss_SRCS})
target_link_libraries(klines.kss ${KDE4_KDEUI_LIBS} kscreensaver)
@ -72,7 +70,7 @@ install(TARGETS klines.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(klorenz.kss_SRCS lorenz.cpp )
kde4_add_executable(klorenz.kss ${klorenz.kss_SRCS})
add_executable(klorenz.kss ${klorenz.kss_SRCS})
target_link_libraries(klorenz.kss ${KDE4_KDEUI_LIBS} ${LIBMATH} kscreensaver)
@ -83,7 +81,7 @@ install(TARGETS klorenz.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kblob.kss_SRCS blob.cpp )
kde4_add_executable(kblob.kss ${kblob.kss_SRCS})
add_executable(kblob.kss ${kblob.kss_SRCS})
target_link_libraries(kblob.kss ${KDE4_KDEUI_LIBS} ${LIBMATH} kscreensaver)
@ -94,7 +92,7 @@ install(TARGETS kblob.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kvm.kss_SRCS kvm.cpp vm.c vm_random.c )
kde4_add_executable(kvm.kss ${kvm.kss_SRCS})
add_executable(kvm.kss ${kvm.kss_SRCS})
target_link_libraries(kvm.kss ${KDE4_KDEUI_LIBS} kscreensaver)
@ -105,7 +103,7 @@ install(TARGETS kvm.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kclock.kss_SRCS kclock.cpp )
kde4_add_executable(kclock.kss ${kclock.kss_SRCS})
add_executable(kclock.kss ${kclock.kss_SRCS})
target_link_libraries(kclock.kss ${KDE4_KDEUI_LIBS} ${LIBMATH} kscreensaver)
@ -119,7 +117,7 @@ install(FILES KClock.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ScreenSavers)
if(Q_WS_X11)
set(kscience.kss_SRCS science.cpp )
kde4_add_executable(kscience.kss ${kscience.kss_SRCS})
add_executable(kscience.kss ${kscience.kss_SRCS})
target_link_libraries(kscience.kss ${KDE4_KDEUI_LIBS} kscreensaver ${X11_LIBRARIES})
@ -133,7 +131,7 @@ message(STATUS "readd opengl+sound support screensaver")
if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND KSCREENSAVER_SOUND_SUPPORT)
#set(kfiresaver.kss_SRCS firesaverparticle.cpp firesaverwriter.cpp firesaver.cpp )
#kde4_add_ui3_files(kfiresaver.kss_SRCS aversetup.ui)
##kde4_add_executable(kfiresaver.kss ${kfiresaver.kss_SRCS})
##add_executable(kfiresaver.kss ${kfiresaver.kss_SRCS})
#target_link_libraries(kfiresaver.kss ${KDE4_KDEUI_LIBS} )
#install(TARGETS kfiresaver.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
#install( FILES KFiresaver.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ScreenSavers )
@ -146,49 +144,44 @@ if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND QT_QTOPENGL_LIBRARY)
if (EIGEN3_FOUND)
include_directories(${EIGEN3_INCLUDE_DIR})
set(krotation.kss_SRCS rotation.cpp sspreviewarea.cpp)
kde4_add_ui_files(krotation.kss_SRCS rotationcfg.ui)
kde4_add_executable(krotation.kss ${krotation.kss_SRCS})
set(krotation.kss_SRCS rotation.cpp sspreviewarea.cpp rotationcfg.ui)
add_executable(krotation.kss ${krotation.kss_SRCS})
target_link_libraries(krotation.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS krotation.kss ${INSTALL_TARGETS_DEFAULT_ARGS})
set(kpendulum.kss_SRCS pendulum.cpp sspreviewarea.cpp)
kde4_add_ui_files(kpendulum.kss_SRCS pendulumcfg.ui)
kde4_add_executable(kpendulum.kss ${kpendulum.kss_SRCS})
set(kpendulum.kss_SRCS pendulum.cpp sspreviewarea.cpp pendulumcfg.ui)
add_executable(kpendulum.kss ${kpendulum.kss_SRCS})
target_link_libraries(kpendulum.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS kpendulum.kss ${INSTALL_TARGETS_DEFAULT_ARGS})
endif (EIGEN3_FOUND)
set(ksolarwinds.kss_SRCS SolarWinds.cpp )
kde4_add_executable(ksolarwinds.kss ${ksolarwinds.kss_SRCS})
add_executable(ksolarwinds.kss ${ksolarwinds.kss_SRCS})
target_link_libraries( ksolarwinds.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS ksolarwinds.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kflux.kss_SRCS Flux.cpp )
kde4_add_executable(kflux.kss ${kflux.kss_SRCS})
add_executable(kflux.kss ${kflux.kss_SRCS})
target_link_libraries( kflux.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS kflux.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(keuphoria.kss_SRCS Euphoria.cpp )
kde4_add_executable(keuphoria.kss ${keuphoria.kss_SRCS})
add_executable(keuphoria.kss ${keuphoria.kss_SRCS})
target_link_libraries( keuphoria.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS keuphoria.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kfountain.kss_SRCS fountain.cpp )
kde4_add_ui_files(kfountain.kss_SRCS fountaincfg.ui)
kde4_add_executable(kfountain.kss ${kfountain.kss_SRCS})
set(kfountain.kss_SRCS fountain.cpp fountaincfg.ui)
add_executable(kfountain.kss ${kfountain.kss_SRCS})
target_link_libraries( kfountain.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS kfountain.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kwave.kss_SRCS wave.cpp )
kde4_add_ui_files(kwave.kss_SRCS wavecfg.ui)
kde4_add_executable(kwave.kss ${kwave.kss_SRCS})
set(kwave.kss_SRCS wave.cpp wavecfg.ui)
add_executable(kwave.kss ${kwave.kss_SRCS})
target_link_libraries( kwave.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS kwave.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(kgravity.kss_SRCS gravity.cpp )
kde4_add_ui_files(kgravity.kss_SRCS gravitycfg.ui)
kde4_add_executable(kgravity.kss ${kgravity.kss_SRCS})
set(kgravity.kss_SRCS gravity.cpp gravitycfg.ui)
add_executable(kgravity.kss ${kgravity.kss_SRCS})
target_link_libraries( kgravity.kss ${KDE4_KDEUI_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} kscreensaver)
install(TARGETS kgravity.kss ${INSTALL_TARGETS_DEFAULT_ARGS} )

View file

@ -3,14 +3,11 @@ set(kdeasciiquarium_SRCS
frame.cpp
screen.cpp
sprite.cpp
)
kde4_add_ui_files(kdeasciiquarium_SRCS
settingswidget.ui
)
kde4_add_kcfg_files(kdeasciiquarium_SRCS AASaverConfig.kcfgc)
kde4_add_executable(kdeasciiquarium.kss ${kdeasciiquarium_SRCS})
add_executable(kdeasciiquarium.kss ${kdeasciiquarium_SRCS})
target_link_libraries(kdeasciiquarium.kss ${KDE4_KDEUI_LIBS} kscreensaver)
install(TARGETS kdeasciiquarium.kss ${INSTALL_TARGETS_DEFAULT_ARGS})

View file

@ -1,5 +1,13 @@
if(OPENGL_FOUND AND OPENGL_GLU_FOUND)
install( FILES kfs_particle.png kfs_particle_flare.png kfs_particle_diastar.png kfs_kde.png kfs_tux.png kfs_letters1.png kfs_letters2.png kfs_letters.desc kfs_explode.ogg kfs_debris.ogg DESTINATION ${DATA_INSTALL_DIR}/kfiresaver )
install(FILES
kfs_particle.png
kfs_particle_flare.png
kfs_particle_diastar.png
kfs_kde.png kfs_tux.png
kfs_letters1.png kfs_letters2.png kfs_letters.desc
kfs_explode.ogg kfs_debris.ogg
DESTINATION ${DATA_INSTALL_DIR}/kfiresaver
)
endif(OPENGL_FOUND AND OPENGL_GLU_FOUND)

View file

@ -3,11 +3,9 @@ project(kpartsaver)
include_directories(${KDE4WORKSPACE_INCLUDE_DIR})
set(kpartsaver.kss_SRCS kpartsaver.cpp )
set(kpartsaver.kss_SRCS kpartsaver.cpp configwidget.ui )
kde4_add_ui_files(kpartsaver.kss_SRCS configwidget.ui )
kde4_add_executable(kpartsaver.kss ${kpartsaver.kss_SRCS})
add_executable(kpartsaver.kss ${kpartsaver.kss_SRCS})
target_link_libraries(kpartsaver.kss ${KDE4_KPARTS_LIBS} kscreensaver)

Some files were not shown because too many files have changed in this diff Show more