mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
generic: move find_package() calls to top-level build file
reference: https://github.com/fluxer/katana/issues/7 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cc2ff35004
commit
9cb8e7a937
15 changed files with 285 additions and 266 deletions
359
CMakeLists.txt
359
CMakeLists.txt
|
@ -14,43 +14,34 @@ set_package_properties(ZLIB PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(DBusMenuQt 0.6.0)
|
find_package(LibGcrypt 1.5.0)
|
||||||
set_package_properties(DBusMenuQt PROPERTIES
|
set_package_properties(LibGcrypt PROPERTIES
|
||||||
DESCRIPTION "Support for notification area menus via the DBusMenu protocol"
|
DESCRIPTION "general purpose cryptographic library based on the code from GnuPG"
|
||||||
URL "https://launchpad.net/libdbusmenu-qt"
|
URL "https://www.gnu.org/software/libgcrypt/"
|
||||||
TYPE RECOMMENDED
|
PURPOSE "kwalletd needs libgcrypt to perform PBKDF2-SHA512 hashing"
|
||||||
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(Strigi 0.6.3)
|
find_package(JPEG)
|
||||||
set_package_properties(Strigi PROPERTIES
|
set_package_properties(JPEG PROPERTIES
|
||||||
DESCRIPTION "Desktop indexing and search support"
|
DESCRIPTION "Accelerated JPEG image codec"
|
||||||
URL "http://strigi.sourceforge.net"
|
URL "http://libjpeg-turbo.virtualgl.org/"
|
||||||
PURPOSE "Fonts analyzer"
|
TYPE REQUIRED
|
||||||
TYPE RECOMMENDED
|
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(OpenGL)
|
find_package(PNG)
|
||||||
set_package_properties(OpenGL PROPERTIES
|
set_package_properties(PNG PROPERTIES
|
||||||
DESCRIPTION "The OpenGL libraries"
|
DESCRIPTION "An Open, Extensible Image Format with Lossless Compression"
|
||||||
URL "http://www.opengl.org"
|
URL "http://www.libpng.org/"
|
||||||
PURPOSE "3D screensavers and OpenGL info module"
|
TYPE REQUIRED
|
||||||
TYPE OPTIONAL
|
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(OpenGLES)
|
find_package(Perl)
|
||||||
set_package_properties(OpenGLES PROPERTIES
|
set_package_properties(Perl PROPERTIES
|
||||||
DESCRIPTION "The OpenGLES libraries"
|
DESCRIPTION "Highly capable, feature-rich programming language"
|
||||||
URL "http://www.khronos.org/opengles"
|
URL "http://www.perl.org"
|
||||||
TYPE OPTIONAL
|
PURPOSE "Needed for KDM config handler generator"
|
||||||
PURPOSE "OpenGL ES info module"
|
TYPE REQUIRED
|
||||||
)
|
|
||||||
|
|
||||||
macro_optional_find_package(LibDRM)
|
|
||||||
set_package_properties(LibDRM PROPERTIES
|
|
||||||
DESCRIPTION "Userspace interface to kernel DRM services"
|
|
||||||
URL "https://dri.freedesktop.org/wiki/"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "OpenGL info module"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(Q_WS_X11)
|
if(Q_WS_X11)
|
||||||
|
@ -104,6 +95,45 @@ if(Q_WS_X11)
|
||||||
endif()
|
endif()
|
||||||
endif(Q_WS_X11)
|
endif(Q_WS_X11)
|
||||||
|
|
||||||
|
macro_optional_find_package(DBusMenuQt 0.6.0)
|
||||||
|
set_package_properties(DBusMenuQt PROPERTIES
|
||||||
|
DESCRIPTION "Support for notification area menus via the DBusMenu protocol"
|
||||||
|
URL "https://launchpad.net/libdbusmenu-qt"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(Strigi 0.6.3)
|
||||||
|
set_package_properties(Strigi PROPERTIES
|
||||||
|
DESCRIPTION "Desktop indexing and search support"
|
||||||
|
URL "http://strigi.sourceforge.net"
|
||||||
|
PURPOSE "Fonts analyzer"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(OpenGL)
|
||||||
|
set_package_properties(OpenGL PROPERTIES
|
||||||
|
DESCRIPTION "The OpenGL libraries"
|
||||||
|
URL "http://www.opengl.org"
|
||||||
|
PURPOSE "3D screensavers and OpenGL info module"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(OpenGLES)
|
||||||
|
set_package_properties(OpenGLES PROPERTIES
|
||||||
|
DESCRIPTION "The OpenGLES libraries"
|
||||||
|
URL "http://www.khronos.org/opengles"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "OpenGL ES info module"
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(LibDRM)
|
||||||
|
set_package_properties(LibDRM PROPERTIES
|
||||||
|
DESCRIPTION "Userspace interface to kernel DRM services"
|
||||||
|
URL "https://dri.freedesktop.org/wiki/"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "OpenGL info module"
|
||||||
|
)
|
||||||
|
|
||||||
macro_optional_find_package(Freetype)
|
macro_optional_find_package(Freetype)
|
||||||
set_package_properties(Freetype PROPERTIES
|
set_package_properties(Freetype PROPERTIES
|
||||||
DESCRIPTION "Freely available software library to render fonts"
|
DESCRIPTION "Freely available software library to render fonts"
|
||||||
|
@ -120,28 +150,6 @@ set_package_properties(Fontconfig PROPERTIES
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(LibGcrypt 1.5.0)
|
|
||||||
set_package_properties(LibGcrypt PROPERTIES
|
|
||||||
DESCRIPTION "general purpose cryptographic library based on the code from GnuPG"
|
|
||||||
URL "https://www.gnu.org/software/libgcrypt/"
|
|
||||||
PURPOSE "kwalletd needs libgcrypt to perform PBKDF2-SHA512 hashing"
|
|
||||||
TYPE REQUIRED
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(JPEG)
|
|
||||||
set_package_properties(JPEG PROPERTIES
|
|
||||||
DESCRIPTION "Accelerated JPEG image codec"
|
|
||||||
URL "http://libjpeg-turbo.virtualgl.org/"
|
|
||||||
TYPE REQUIRED
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(PNG)
|
|
||||||
set_package_properties(PNG PROPERTIES
|
|
||||||
DESCRIPTION "An Open, Extensible Image Format with Lossless Compression"
|
|
||||||
URL "http://www.libpng.org/"
|
|
||||||
TYPE REQUIRED
|
|
||||||
)
|
|
||||||
|
|
||||||
macro_optional_find_package(LibGPS)
|
macro_optional_find_package(LibGPS)
|
||||||
set_package_properties(LibGPS PROPERTIES
|
set_package_properties(LibGPS PROPERTIES
|
||||||
DESCRIPTION "GPSes/AIS service library"
|
DESCRIPTION "GPSes/AIS service library"
|
||||||
|
@ -158,14 +166,126 @@ set_package_properties(LibKonq PROPERTIES
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(Perl)
|
macro_optional_find_package(Prison QUIET CONFIG)
|
||||||
set_package_properties(Perl PROPERTIES
|
set_package_properties(Prison PROPERTIES
|
||||||
DESCRIPTION "Highly capable, feature-rich programming language"
|
DESCRIPTION "Prison library"
|
||||||
URL "http://www.perl.org"
|
URL "http://projects.kde.org/prison"
|
||||||
PURPOSE "Needed for KDM config handler generator"
|
TYPE OPTIONAL
|
||||||
TYPE REQUIRED
|
PURPOSE "Needed to create mobile barcodes from clipboard data"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(LibUSB)
|
||||||
|
set_package_properties(LibUSB PROPERTIES
|
||||||
|
DESCRIPTION "User level access to USB devices"
|
||||||
|
URL "http://libusb.sourceforge.net"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Provides Logitech mouse support in KControl."
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(PCIUTILS)
|
||||||
|
set_package_properties(PCIUTILS PROPERTIES
|
||||||
|
DESCRIPTION "PciUtils is a library for direct access to PCI slots"
|
||||||
|
URL "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "View PCI details in kinfocenter."
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(RAW1394)
|
||||||
|
set_package_properties(RAW1394 PROPERTIES
|
||||||
|
DESCRIPTION "library for direct access to IEEE 1394 bus"
|
||||||
|
URL "http://www.linux1394.org/"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "View FireWire devices in kinfocenter."
|
||||||
|
)
|
||||||
|
|
||||||
|
# we need a version of samba which has already smbc_set_context(), Alex
|
||||||
|
set(SAMBA_REQUIRE_SMBC_SET_CONTEXT TRUE)
|
||||||
|
set(SAMBA_REQUIRE_SMBC_OPTION_SET TRUE)
|
||||||
|
macro_optional_find_package(Samba)
|
||||||
|
set_package_properties(Samba PROPERTIES
|
||||||
|
DESCRIPTION "the SMB client library, a version with smbc_set_context() and smbc_option_set()"
|
||||||
|
URL "http://www.samba.org"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed to build the SMB kioslave"
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(LibSSH 0.6.0)
|
||||||
|
set_package_properties(LibSSH PROPERTIES
|
||||||
|
DESCRIPTION "the SSH library with SFTP support"
|
||||||
|
URL "http://www.libssh.org/"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed to build the SFTP kioslave"
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(Mtp 1.1.2)
|
||||||
|
set_package_properties(Mtp PROPERTIES
|
||||||
|
DESCRIPTION "the library implementation of the Media Transfer Protocol"
|
||||||
|
URL "http://libmtp.sourceforge.net/"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed to build the MTP kioslave"
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(BZip2)
|
||||||
|
set_package_properties(BZip2 PROPERTIES
|
||||||
|
DESCRIPTION "A high-quality data compressor"
|
||||||
|
URL "http://www.bzip.org"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Provides the ability to read and write bzip2 compressed data files in the filter kioslave."
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(LibLZMA)
|
||||||
|
set_package_properties(LibLZMA PROPERTIES
|
||||||
|
DESCRIPTION "A very high compression ratio data compressor"
|
||||||
|
URL "http://tukaani.org/xz/"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Provides the ability to read and write xz compressed data files."
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(OpenEXR)
|
||||||
|
set_package_properties(OpenEXR PROPERTIES
|
||||||
|
DESCRIPTION "API for accessing OpenEXR formatted images"
|
||||||
|
URL "http://www.openexr.com"
|
||||||
|
PURPOSE "Provides support for OpenEXR formatted images in the thumbnail kioslave"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(Sensors)
|
||||||
|
set_package_properties(Sensors PROPERTIES
|
||||||
|
DESCRIPTION "Linux hardware monitoring"
|
||||||
|
URL "https://hwmon.wiki.kernel.org/lm_sensors"
|
||||||
|
PURPOSE "Sensors feedback in ksysguard"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(Qalculate)
|
||||||
|
set_package_properties(Qalculate PROPERTIES
|
||||||
|
DESCRIPTION "Qalculate Library"
|
||||||
|
URL "http://qalculate.sourceforge.net"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed to enable advanced features of the calculator runner"
|
||||||
|
)
|
||||||
|
|
||||||
|
macro_optional_find_package(NetworkManager)
|
||||||
|
set_package_properties(NetworkManager PROPERTIES
|
||||||
|
DESCRIPTION "The NetworkManager headers"
|
||||||
|
URL "http://projects.gnome.org/NetworkManager"
|
||||||
|
TYPE OPTIONAL
|
||||||
|
PURPOSE "Needed for kded's networkstatus module"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_program(WRESTOOL_EXECUTABLE wrestool)
|
||||||
|
add_feature_info(wrestool
|
||||||
|
WRESTOOL_EXECUTABLE
|
||||||
|
"ICO thumbnails support in KIO slave"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_program(MTOOLS_EXECUTABLES NAMES mdir mmd mdel mrd mren mcopy)
|
||||||
|
add_feature_info(mtools
|
||||||
|
MTOOLS_EXECUTABLES
|
||||||
|
"KIO floppy support"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
|
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
|
||||||
check_include_files(sys/time.h HAVE_SYS_TIME_H)
|
check_include_files(sys/time.h HAVE_SYS_TIME_H)
|
||||||
|
|
||||||
|
@ -186,92 +306,91 @@ add_subdirectory(libs)
|
||||||
# pictures
|
# pictures
|
||||||
add_subdirectory(pics)
|
add_subdirectory(pics)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(systemsettings )
|
add_subdirectory(systemsettings)
|
||||||
|
|
||||||
# core apps
|
# core apps
|
||||||
macro_optional_add_subdirectory(kcheckpass)
|
add_subdirectory(kcheckpass)
|
||||||
macro_optional_add_subdirectory(kwin)
|
add_subdirectory(kwin)
|
||||||
macro_optional_add_subdirectory(ksmserver)
|
add_subdirectory(ksmserver)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(ksplash)
|
add_subdirectory(ksplash)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(powerdevil)
|
add_subdirectory(powerdevil)
|
||||||
macro_optional_add_subdirectory(qguiplatformplugin_kde)
|
add_subdirectory(qguiplatformplugin_kde)
|
||||||
macro_optional_add_subdirectory(ksysguard)
|
add_subdirectory(ksysguard)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(kcontrol)
|
add_subdirectory(kcontrol)
|
||||||
macro_optional_add_subdirectory(klipper)
|
add_subdirectory(klipper)
|
||||||
macro_optional_add_subdirectory(kmenuedit)
|
add_subdirectory(kmenuedit)
|
||||||
macro_optional_add_subdirectory(krunner)
|
add_subdirectory(krunner)
|
||||||
macro_optional_add_subdirectory(solid-actions-kcm)
|
add_subdirectory(solid-actions-kcm)
|
||||||
macro_optional_add_subdirectory(kstartupconfig)
|
add_subdirectory(kstartupconfig)
|
||||||
macro_optional_add_subdirectory(freespacenotifier)
|
add_subdirectory(freespacenotifier)
|
||||||
macro_optional_add_subdirectory(kscreensaver)
|
add_subdirectory(kscreensaver)
|
||||||
macro_optional_add_subdirectory(kinfocenter)
|
add_subdirectory(kinfocenter)
|
||||||
|
|
||||||
if(Q_WS_X11 AND X11_Xinput_FOUND)
|
if(Q_WS_X11 AND X11_Xinput_FOUND)
|
||||||
macro_optional_add_subdirectory(ktouchpadenabler)
|
add_subdirectory(ktouchpadenabler)
|
||||||
endif(Q_WS_X11 AND X11_Xinput_FOUND)
|
endif(Q_WS_X11 AND X11_Xinput_FOUND)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(kcminit)
|
add_subdirectory(kcminit)
|
||||||
macro_optional_add_subdirectory(khotkeys)
|
add_subdirectory(khotkeys)
|
||||||
macro_optional_add_subdirectory(kwrited)
|
add_subdirectory(ksystraycmd)
|
||||||
macro_optional_add_subdirectory(ksystraycmd)
|
add_subdirectory(appmenu)
|
||||||
macro_optional_add_subdirectory(appmenu)
|
|
||||||
|
|
||||||
if(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
if(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
||||||
macro_optional_add_subdirectory( kdm )
|
add_subdirectory( kdm )
|
||||||
else(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
else(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
||||||
message(STATUS "Xau lib or Xdmcp lib was missing. kdm will not compile")
|
message(STATUS "Xau lib or Xdmcp lib was missing. kdm will not compile")
|
||||||
endif(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
endif(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
|
||||||
|
|
||||||
# data
|
# data
|
||||||
macro_optional_add_subdirectory(cursors)
|
add_subdirectory(cursors)
|
||||||
|
|
||||||
macro_optional_add_subdirectory(plasma)
|
add_subdirectory(plasma)
|
||||||
macro_optional_add_subdirectory(statusnotifierwatcher)
|
add_subdirectory(statusnotifierwatcher)
|
||||||
macro_optional_add_subdirectory(kstyles)
|
add_subdirectory(kstyles)
|
||||||
|
|
||||||
# imported from kde-runtime and other sub-projects
|
# imported from kde-runtime and other sub-projects
|
||||||
macro_optional_add_subdirectory(menu)
|
add_subdirectory(menu)
|
||||||
macro_optional_add_subdirectory(kwalletd)
|
add_subdirectory(kwalletd)
|
||||||
macro_optional_add_subdirectory(kwalletmanager)
|
add_subdirectory(kwalletmanager)
|
||||||
macro_optional_add_subdirectory(knotify)
|
add_subdirectory(knotify)
|
||||||
macro_optional_add_subdirectory(kuiserver)
|
add_subdirectory(kuiserver)
|
||||||
macro_optional_add_subdirectory(soliduiserver)
|
add_subdirectory(soliduiserver)
|
||||||
macro_optional_add_subdirectory(solidautoeject)
|
add_subdirectory(solidautoeject)
|
||||||
macro_optional_add_subdirectory(solid-device-automounter)
|
add_subdirectory(solid-device-automounter)
|
||||||
macro_optional_add_subdirectory(solid-networkstatus)
|
add_subdirectory(solid-networkstatus)
|
||||||
macro_optional_add_subdirectory(kcmshell)
|
add_subdirectory(kcmshell)
|
||||||
macro_optional_add_subdirectory(kioslave)
|
add_subdirectory(kioslave)
|
||||||
macro_optional_add_subdirectory(kurifilter-plugins)
|
add_subdirectory(kurifilter-plugins)
|
||||||
macro_optional_add_subdirectory(renamedlgplugins)
|
add_subdirectory(renamedlgplugins)
|
||||||
macro_optional_add_subdirectory(kquitapp)
|
add_subdirectory(kquitapp)
|
||||||
if (Q_WS_X11)
|
if (Q_WS_X11)
|
||||||
macro_optional_add_subdirectory(kstart)
|
add_subdirectory(kstart)
|
||||||
endif (Q_WS_X11)
|
endif (Q_WS_X11)
|
||||||
# Background processes
|
# Background processes
|
||||||
macro_optional_add_subdirectory(kpasswdserver)
|
add_subdirectory(kpasswdserver)
|
||||||
macro_optional_add_subdirectory(kdontchangethehostname)
|
add_subdirectory(kdontchangethehostname)
|
||||||
macro_optional_add_subdirectory(kglobalaccel)
|
add_subdirectory(kglobalaccel)
|
||||||
macro_optional_add_subdirectory(ktimezoned)
|
add_subdirectory(ktimezoned)
|
||||||
# Command-line tools (e.g. for shell scripts)
|
# Command-line tools (e.g. for shell scripts)
|
||||||
macro_optional_add_subdirectory(kdeeject)
|
add_subdirectory(kdeeject)
|
||||||
macro_optional_add_subdirectory(kfile)
|
add_subdirectory(kfile)
|
||||||
macro_optional_add_subdirectory(kiconfinder)
|
add_subdirectory(kiconfinder)
|
||||||
macro_optional_add_subdirectory(kioclient)
|
add_subdirectory(kioclient)
|
||||||
macro_optional_add_subdirectory(kioexec)
|
add_subdirectory(kioexec)
|
||||||
macro_optional_add_subdirectory(ktraderclient)
|
add_subdirectory(ktraderclient)
|
||||||
macro_optional_add_subdirectory(kreadconfig)
|
add_subdirectory(kreadconfig)
|
||||||
macro_optional_add_subdirectory(kmimetypefinder)
|
add_subdirectory(kmimetypefinder)
|
||||||
# UI Helper applications
|
# UI Helper applications
|
||||||
macro_optional_add_subdirectory(drkonqi)
|
add_subdirectory(drkonqi)
|
||||||
macro_optional_add_subdirectory(knetattach)
|
add_subdirectory(knetattach)
|
||||||
macro_optional_add_subdirectory(keditfiletype)
|
add_subdirectory(keditfiletype)
|
||||||
# Default settings, content and config
|
# Default settings, content and config
|
||||||
macro_optional_add_subdirectory(l10n)
|
add_subdirectory(l10n)
|
||||||
macro_optional_add_subdirectory(localization)
|
add_subdirectory(localization)
|
||||||
macro_optional_add_subdirectory(kde-menu)
|
add_subdirectory(kde-menu)
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
# install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kde4 DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
# install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kde4 DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set(setuptools tar inkspace xcursorgen)
|
set(setuptools tar xcursorgen)
|
||||||
foreach(tool ${setuptools})
|
foreach(tool ${setuptools})
|
||||||
string(TOUPPER ${tool} uppertool)
|
string(TOUPPER ${tool} uppertool)
|
||||||
find_program(${uppertool} ${tool})
|
find_program(${uppertool} ${tool})
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
|
|
||||||
add_subdirectory( pics )
|
add_subdirectory( pics )
|
||||||
|
|
||||||
macro_optional_find_package(LibUSB)
|
|
||||||
macro_bool_to_01(LIBUSB_FOUND HAVE_LIBUSB)
|
macro_bool_to_01(LIBUSB_FOUND HAVE_LIBUSB)
|
||||||
set_package_properties(LibUSB PROPERTIES
|
|
||||||
DESCRIPTION "User level access to USB devices"
|
|
||||||
URL "http://libusb.sourceforge.net"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Provides Logitech mouse support in KControl."
|
|
||||||
)
|
|
||||||
|
|
||||||
configure_file (config-kcontrol-input.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcontrol-input.h )
|
configure_file (
|
||||||
|
config-kcontrol-input.h.cmake
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/config-kcontrol-input.h
|
||||||
|
)
|
||||||
|
|
||||||
include_directories( ${KDE4_INCLUDES} )
|
include_directories( ${KDE4_INCLUDES} )
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
|
|
||||||
if( XRANDR_1_2_FOUND )
|
if( XRANDR_1_2_FOUND )
|
||||||
macro_optional_add_subdirectory(module)
|
add_subdirectory(module)
|
||||||
endif( XRANDR_1_2_FOUND )
|
endif( XRANDR_1_2_FOUND )
|
||||||
|
|
||||||
configure_file (config-randr.h.cmake
|
configure_file(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/config-randr.h )
|
config-randr.h.cmake
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/config-randr.h
|
||||||
|
)
|
||||||
|
|
||||||
include_directories( ${X11_Xrandr_INCLUDE_PATH} )
|
include_directories( ${X11_Xrandr_INCLUDE_PATH} )
|
||||||
|
|
||||||
|
|
|
@ -17,24 +17,8 @@ else()
|
||||||
message(STATUS "OpenGL/ES2.0 information module has been disabled.")
|
message(STATUS "OpenGL/ES2.0 information module has been disabled.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
macro_optional_find_package(PCIUTILS)
|
|
||||||
set_package_properties(PCIUTILS PROPERTIES
|
|
||||||
DESCRIPTION "PciUtils is a library for direct access to PCI slots"
|
|
||||||
URL "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "View PCI details in kinfocenter."
|
|
||||||
)
|
|
||||||
|
|
||||||
add_subdirectory( pci )
|
add_subdirectory( pci )
|
||||||
|
|
||||||
macro_optional_find_package(RAW1394)
|
|
||||||
set_package_properties(RAW1394 PROPERTIES
|
|
||||||
DESCRIPTION "library for direct access to IEEE 1394 bus"
|
|
||||||
URL "http://www.linux1394.org/"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "View FireWire devices in kinfocenter."
|
|
||||||
)
|
|
||||||
|
|
||||||
if(RAW1394_FOUND)
|
if(RAW1394_FOUND)
|
||||||
add_subdirectory( view1394 )
|
add_subdirectory( view1394 )
|
||||||
endif(RAW1394_FOUND)
|
endif(RAW1394_FOUND)
|
||||||
|
|
|
@ -1,31 +1,3 @@
|
||||||
|
|
||||||
# we need a version of samba which has already smbc_set_context(), Alex
|
|
||||||
set(SAMBA_REQUIRE_SMBC_SET_CONTEXT TRUE)
|
|
||||||
set(SAMBA_REQUIRE_SMBC_OPTION_SET TRUE)
|
|
||||||
macro_optional_find_package(Samba)
|
|
||||||
set_package_properties(Samba PROPERTIES
|
|
||||||
DESCRIPTION "the SMB client library, a version with smbc_set_context() and smbc_option_set()"
|
|
||||||
URL "http://www.samba.org"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed to build the SMB kioslave"
|
|
||||||
)
|
|
||||||
|
|
||||||
macro_optional_find_package(LibSSH 0.6.0)
|
|
||||||
set_package_properties(LibSSH PROPERTIES
|
|
||||||
DESCRIPTION "the SSH library with SFTP support"
|
|
||||||
URL "http://www.libssh.org/"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed to build the SFTP kioslave"
|
|
||||||
)
|
|
||||||
|
|
||||||
macro_optional_find_package(Mtp 1.1.2)
|
|
||||||
set_package_properties(Mtp PROPERTIES
|
|
||||||
DESCRIPTION "the library implementation of the Media Transfer Protocol"
|
|
||||||
URL "http://libmtp.sourceforge.net/"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed to build the MTP kioslave"
|
|
||||||
)
|
|
||||||
|
|
||||||
add_subdirectory( bookmarks )
|
add_subdirectory( bookmarks )
|
||||||
add_subdirectory( filter )
|
add_subdirectory( filter )
|
||||||
add_subdirectory( archive )
|
add_subdirectory( archive )
|
||||||
|
|
|
@ -1,18 +1,4 @@
|
||||||
|
|
||||||
macro_optional_find_package(BZip2)
|
|
||||||
set_package_properties(BZip2 PROPERTIES DESCRIPTION "A high-quality data compressor"
|
|
||||||
URL "http://www.bzip.org"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Provides the ability to read and write bzip2 compressed data files in the filter kioslave."
|
|
||||||
)
|
|
||||||
|
|
||||||
macro_optional_find_package(LibLZMA)
|
|
||||||
set_package_properties(LibLZMA PROPERTIES DESCRIPTION "A very high compression ratio data compressor"
|
|
||||||
URL "http://tukaani.org/xz/"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Provides the ability to read and write xz compressed data files."
|
|
||||||
)
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kio_filter_PART_SRCS filter.cc)
|
set(kio_filter_PART_SRCS filter.cc)
|
||||||
|
@ -28,11 +14,21 @@ install(TARGETS kio_filter DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES gzip.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
install(
|
||||||
|
FILES gzip.protocol
|
||||||
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
if(BZIP2_FOUND)
|
if(BZIP2_FOUND)
|
||||||
install( FILES bzip.protocol bzip2.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
install(
|
||||||
endif(BZIP2_FOUND)
|
FILES bzip.protocol bzip2.protocol
|
||||||
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(LIBLZMA_FOUND)
|
if(LIBLZMA_FOUND)
|
||||||
install( FILES lzma.protocol xz.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
install(
|
||||||
endif(LIBLZMA_FOUND)
|
FILES lzma.protocol xz.protocol
|
||||||
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
find_program(MTOOLS_EXECUTABLES NAMES mdir mmd mdel mrd mren mcopy)
|
|
||||||
add_feature_info(
|
|
||||||
"mtools"
|
|
||||||
MTOOLS_EXECUTABLES
|
|
||||||
"KIO floppy support"
|
|
||||||
)
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,3 @@
|
||||||
macro_optional_find_package(OpenEXR)
|
|
||||||
set_package_properties(OpenEXR PROPERTIES
|
|
||||||
DESCRIPTION "API for accessing OpenEXR formatted images"
|
|
||||||
URL "http://www.openexr.com"
|
|
||||||
PURPOSE "Provides support for OpenEXR formatted images in the thumbnail kioslave"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
)
|
|
||||||
|
|
||||||
find_program(WRESTOOL_EXECUTABLE wrestool)
|
|
||||||
add_feature_info(wrestool
|
|
||||||
WRESTOOL_EXECUTABLE
|
|
||||||
"ICO thumbnails support in KIO slave"
|
|
||||||
)
|
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp)
|
set(kio_thumbnail_PART_SRCS thumbnail.cpp imagefilter.cpp)
|
||||||
|
|
|
@ -17,14 +17,6 @@ set(libklipper_common_SRCS
|
||||||
editactiondialog.ui
|
editactiondialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(Prison QUIET CONFIG)
|
|
||||||
set_package_properties(Prison PROPERTIES
|
|
||||||
DESCRIPTION "Prison library"
|
|
||||||
URL "http://projects.kde.org/prison"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed to create mobile barcodes from clipboard data"
|
|
||||||
)
|
|
||||||
|
|
||||||
if (PRISON_FOUND)
|
if (PRISON_FOUND)
|
||||||
add_definitions(-DHAVE_PRISON)
|
add_definitions(-DHAVE_PRISON)
|
||||||
include_directories(${PRISON_INCLUDE_DIR})
|
include_directories(${PRISON_INCLUDE_DIR})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
macro_optional_add_subdirectory( asciiquarium )
|
add_subdirectory( asciiquarium )
|
||||||
|
|
||||||
SET(LIBMATH "m")
|
SET(LIBMATH "m")
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ if(ENABLE_TESTING)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
macro_optional_add_subdirectory( screenlocker )
|
add_subdirectory( screenlocker )
|
||||||
set(COMPILE_SCREEN_LOCKER 1)
|
set(COMPILE_SCREEN_LOCKER 1)
|
||||||
set(SCREEN_LOCKER "screenlocker_static")
|
set(SCREEN_LOCKER "screenlocker_static")
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
cmake_minimum_required(VERSION 2.6.2)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/CContLib/ )
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/CContLib/ )
|
||||||
|
|
||||||
# Laurent: Verify that we install it into (kdeprefix)/etc/ and not into /etc
|
# Laurent: Verify that we install it into (kdeprefix)/etc/ and not into /etc
|
||||||
|
@ -9,7 +5,6 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/CContLib/ )
|
||||||
# into kde 3.x it was installed into /etc/
|
# into kde 3.x it was installed into /etc/
|
||||||
add_definitions( -DKSYSGUARDDRCFILE="\\"${KDE4_SYSCONF_INSTALL_DIR}/ksysguarddrc\\"" )
|
add_definitions( -DKSYSGUARDDRCFILE="\\"${KDE4_SYSCONF_INSTALL_DIR}/ksysguarddrc\\"" )
|
||||||
|
|
||||||
macro_optional_find_package(Sensors)
|
|
||||||
macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
|
macro_bool_to_01(SENSORS_FOUND HAVE_LMSENSORS)
|
||||||
|
|
||||||
configure_file(config-ksysguardd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguardd.h)
|
configure_file(config-ksysguardd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguardd.h)
|
||||||
|
|
|
@ -1,45 +1,35 @@
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
macro_optional_find_package(Qalculate)
|
|
||||||
set_package_properties(Qalculate PROPERTIES
|
|
||||||
DESCRIPTION "Qalculate Library"
|
|
||||||
URL "http://qalculate.sourceforge.net"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed to enable advanced features of the calculator runner"
|
|
||||||
)
|
|
||||||
|
|
||||||
if ( QALCULATE_FOUND )
|
|
||||||
include_directories(${QALCULATE_INCLUDE_DIR})
|
|
||||||
add_definitions(-DENABLE_QALCULATE)
|
|
||||||
|
|
||||||
set(qalculate_engine_SRCS
|
|
||||||
qalculate_engine.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS} -Wno-deprecated")
|
|
||||||
endif( QALCULATE_FOUND )
|
|
||||||
|
|
||||||
set(krunner_calculatorrunner_SRCS
|
set(krunner_calculatorrunner_SRCS
|
||||||
calculatorrunner.cpp
|
calculatorrunner.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if ( QALCULATE_FOUND )
|
if ( QALCULATE_FOUND )
|
||||||
kde4_add_plugin(krunner_calculatorrunner ${qalculate_engine_SRCS} ${krunner_calculatorrunner_SRCS})
|
include_directories(${QALCULATE_INCLUDE_DIR})
|
||||||
|
add_definitions(-DENABLE_QALCULATE)
|
||||||
|
|
||||||
|
set(krunner_calculatorrunner_SRCS
|
||||||
|
${krunner_calculatorrunner_SRCS}
|
||||||
|
qalculate_engine.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS} -Wno-deprecated")
|
||||||
|
endif( QALCULATE_FOUND )
|
||||||
|
|
||||||
|
kde4_add_plugin(krunner_calculatorrunner ${krunner_calculatorrunner_SRCS})
|
||||||
|
target_link_libraries(krunner_calculatorrunner
|
||||||
|
${KDE4_KDEUI_LIBS}
|
||||||
|
${KDE4_PLASMA_LIBS}
|
||||||
|
${QT_QTSCRIPT_LIBRARY}
|
||||||
|
)
|
||||||
|
|
||||||
|
if ( QALCULATE_FOUND )
|
||||||
target_link_libraries(krunner_calculatorrunner
|
target_link_libraries(krunner_calculatorrunner
|
||||||
${KDE4_SOLID_LIBS}
|
${KDE4_SOLID_LIBS}
|
||||||
${KDE4_KIO_LIBS}
|
${KDE4_KIO_LIBS}
|
||||||
${KDE4_KDEUI_LIBS}
|
|
||||||
${KDE4_PLASMA_LIBS}
|
|
||||||
${QALCULATE_LIBRARIES}
|
${QALCULATE_LIBRARIES}
|
||||||
)
|
)
|
||||||
else ( QALCULATE_FOUND )
|
|
||||||
kde4_add_plugin(krunner_calculatorrunner ${krunner_calculatorrunner_SRCS})
|
|
||||||
target_link_libraries(krunner_calculatorrunner
|
|
||||||
${KDE4_KDEUI_LIBS}
|
|
||||||
${KDE4_PLASMA_LIBS}
|
|
||||||
${QT_QTSCRIPT_LIBRARY}
|
|
||||||
)
|
|
||||||
endif ( QALCULATE_FOUND )
|
endif ( QALCULATE_FOUND )
|
||||||
|
|
||||||
install(TARGETS krunner_calculatorrunner DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
install(TARGETS krunner_calculatorrunner DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
||||||
|
|
|
@ -8,13 +8,6 @@ set(kded_networkstatus_PART_SRCS
|
||||||
wicdcustomtypes.cpp
|
wicdcustomtypes.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
macro_optional_find_package(NetworkManager)
|
|
||||||
set_package_properties(NetworkManager PROPERTIES DESCRIPTION "The NetworkManager headers"
|
|
||||||
URL "http://projects.gnome.org/NetworkManager"
|
|
||||||
TYPE OPTIONAL
|
|
||||||
PURPOSE "Needed for kded's networkstatus module"
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NETWORKMANAGER_FOUND)
|
if(NETWORKMANAGER_FOUND)
|
||||||
if(${NETWORKMANAGER_VERSION} VERSION_EQUAL "0.7.0"
|
if(${NETWORKMANAGER_VERSION} VERSION_EQUAL "0.7.0"
|
||||||
OR ${NETWORKMANAGER_VERSION} VERSION_GREATER "0.7.0")
|
OR ${NETWORKMANAGER_VERSION} VERSION_GREATER "0.7.0")
|
||||||
|
|
Loading…
Add table
Reference in a new issue