summaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)AuthorFilesLines
2022-06-06Fix build with newer glibHEADmasterAlbert Astals Cid1-1/+1
gunixconnection.h is now at /usr/include/glib-2.0/gio/gunixconnection.h
2019-11-09Farstream/CMakeLists.txt: Add dbus-glib include pathJan Tojnar1-3/+2
On traditional systems, both DBUS_GLIB_INCLUDE_DIR and DBUS_INCLUDE_DIR point to something like /usr/include/dbus-1.0. This does need to be the case though – for example, Nix installs each library to a separate directory in the Nix store. Additionally, since CMake uses its own hacky scripts instead of actually obtaining the correct flags from pkgconfig, the DBUS_GLIB_INCLUDE_DIR did not contain the dbus-1.0 path. This patch fixes the DBUS_GLIB_INCLUDE_DIR variable and then adds it to include_directories for Farstream.
2019-11-09CMake: Add sources for the doxygen-doc targetAlexander Akulich1-1/+19
2019-11-09CMake: Port to GNUInstallDirsAlexander Akulich1-3/+23
LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR are now always absolute paths.
2019-11-09CMake: Fix Find modules lookup (use HINTS instead of PATHS)Alexander Akulich6-24/+27
The documentation says that PATHS has lower priority than the standard system environment variables. Use HINTS to lookup the directories from pkg-config at first. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40008
2019-11-08CMake: Drop custom FindQt5 module, rebase on Qt5 targetsAlexander Akulich4-238/+12
2019-11-07CMake: Remove USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR optionAlexander Akulich1-5/+0
2019-09-20Fix wrong version number matchingBrandon Hong1-2/+2
As the CMake MATCH takes regex parameter, sub-string could unexpectedtly be matched. QT verseion 5.12.4, for instance, will be matched with not just for QT5 but also for QT4 as well due to the sub-string '4' which is unexpected. This patch resolves the issue by constraining version number testing for Major version numbers only. Signed-off-by: Brandon Hong <brandon.hong@intel.com>
2019-09-19CMake: Remove own FindPython modulesAlexander Akulich2-97/+0
2019-08-31CMake: Remove own FindLibXml2Alexander Akulich1-57/+0
Use the upstream one (available for ages)
2019-08-31Doxygen.cmake: set_package_properties also for doxygenGeorge Kiagiadakis1-0/+5
2019-08-31cmake: silence some secondary find_package callsGeorge Kiagiadakis2-2/+2
2019-08-31cmake: use FeatureSummary instead of MacroLogFeatureGeorge Kiagiadakis1-146/+0
less things to maintain... FeatureSummary is part of cmake
2016-10-15Remove DATA_INSTALL_DIRNiels Ole Salscheider1-1/+0
We do not install anything in that directory. But having it causes an error for any user of telepathy-qt when the directory does not exist.
2016-09-07cmake: use CMakePackageConfigHelpersGeorge Kiagiadakis2-51/+0
...and therefore remove the bundled MacroWriteBasicCMakeVersionFile This gives the advantages that configure_package_config_file() gives and also removes the need for us to maintain one more macro.
2016-09-07cmake: fix CMP0046 warnings in case doxygen is not foundGeorge Kiagiadakis1-0/+5
2016-09-07cmake: get rid of the old & ugly syntax of having arguments in else(), ↵George Kiagiadakis23-227/+228
endif(), endmacro(), endfunction() This is an old cmake syntax that is not required anymore. It's ugly and makes code hard to read.
2016-08-27FindQt5.cmake: remove hardcoded -fPIC flagGeorge Kiagiadakis1-2/+0
This was probably needed because the pkgconfig check for QtCore was failing, so the code in CMakeLists.txt that adds -fPIC and -fPIE in the flags was never executed. Currently, -fPIC and -fPIE are added when 'reduce_relocations' is present in the qt_config flags in Qt5Core.pc Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
2016-08-27FindQt5.cmake: look in the correct pkg-config file for QT_CONFIG_FLAGSGeorge Kiagiadakis1-1/+1
Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
2016-06-10CMake/TpQtMacros: Added missing dependencies.Alexandr Akulich1-3/+9
Generated header now depends on input xmls. Fixes build with ninja.
2015-10-06Tell CMake what version of Python we want to find.Alex Merry1-1/+2
This ensures that Python 2 is found if possible, rather than Python 3. https://bugs.freedesktop.org/show_bug.cgi?id=91659 Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
2015-10-06Farstream: gst/gstconfig.h can be in LIBDIR, search for it explicitlyNiels Ole Salscheider1-5/+20
Since GStreamer-1.5.1 config header file moved to LIBDIR. Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
2015-06-07CMake: Fixed deprecated _BSD_SOURCE.Niels Ole Salscheider1-1/+1
Since glibc-2.20 _DEFAULT_SOURCE definition is also required. Reviewed-by: Alexandr Akulich
2014-08-25Don't error on unused typedefsDavid Edmundson1-2/+4
Unused typedefs can happen easily with varying versions of TpGlib, and it's not a problem that should cause compliation to fail.
2014-07-25Update FindGStreamer0.10 -> FindGStreamer1.0Alin Elena1-16/+6
Reviewed-by: David Edmundson
2014-07-25start updating TelepathyQt to use newer farstreamDiane Trout1-4/+4
2014-03-14Allow compilation when only qmake-qt4 is in the pathUwe Korn1-15/+26
If Qt5 is found via cmake we do not need to find the qmake executable. This fixes builds when only qmake4 is available in the path. Reviewed-by: David Edmundson
2014-03-14Simplify FindQt5.cmakeUwe Korn1-22/+31
Make further use of Qt 5's cmake integration Reviewed-by: David Edmundson
2014-02-02Fix moc command for Qt5.2Dario Freddi1-3/+3
The check was already there, but since Qt5 CMake files are being shipped with Qt5 itself, the check was meaningless as the only thing which matters is Qt's version, and not CMake's one. Reviewed-by: David Edmundson <davidedmundson@kde.org>
2014-01-28Fix build for Qt5 releaseDavid Edmundson1-53/+15
Reviewed-by: John Brooks <john.brooks@jolla.com>
2013-10-03Fix compilation on new versions of cmakeDavid Edmundson1-2/+10
Recent cmake has changed the argument count to qt4_create_moc_command, we need to adjust accordingly Reviewed-by: Dario Freddi <dario.freddi@ispirata.com>
2013-07-15Kill the last bits of FarsightDario Freddi2-59/+10
2012-07-09cmake: Use options correctlyDario Freddi1-3/+3
2012-07-04cmake: Fix PkgConfig handlingDario Freddi3-9/+9
2012-07-04cmake: pass -fvisibility-inlines-hidden to the compiler if it's supportedGeorge Kiagiadakis1-0/+5
This flag allows most inline functions to be hidden from the exported symbol table to avoid symbol table pollution.
2012-07-02cmake: rewrite FindDBus.cmake to do things in a more modern and consistent wayGeorge Kiagiadakis1-51/+22
2012-04-13Only generate adaptors for non-deprecated stable interfaces.Andre Moreira Magalhaes (andrunko)1-1/+2
2012-04-04Properly build against Qt 5 alpha.Andre Moreira Magalhaes (andrunko)2-3/+10
Qt 5 alpha release has some build issues that should be addressed in order to build tp-qt against it: - When running configure in Qt 5 alpha, the pkgconfig files are properly generated, but when make is executed, the files are replaced with empty ones, so to build tp-qt one must either backup the pkgconfig files generated during the configure phase before running make and replace them afterwards, or re-run configure with the same parameters after building it. (reported and should be fixed when beta is out) - If Qt 5 alpha is built with -reduce-relocations enabled, one must add the keyword "reduce_relocations" to qtbase/lib/pkgconfig/QtCore.pc in the qt_config section, so that tp-qt knows when to use -fPIC/PIE accordingly. (reported and should be fixed when beta is out)
2012-04-02Remove separation from client and service side high-level APIs.Andre Moreira Magalhaes (andrunko)1-5/+5
To be more consitent with how client side is implemented, the service side high-level classes are now moved to the TelepathyQt dir, removing the separate Service dir. Library specific globals (TP_QT_EXPORT, etc) are now shared between tp-qt-service and tp-qt. The plan is to merge both libraries into tp-qt in the future, when the service side bindings are API/ABI stable.
2012-04-02TpQtMacros.cmake: Add macro for generating service side adaptors.Andre Moreira Magalhaes (andrunko)1-0/+43
2012-04-02TpQtMacros.cmake: Remove redundant call to append generated file to ↵Andre Moreira Magalhaes (andrunko)1-1/+0
telepathy_qt_SRCS.
2012-03-21farstream: Port the farstream lib away from tp-qt4-yell and integrate it ↵George Kiagiadakis2-0/+100
into the build system.
2011-12-19Merge branch 'conn-addressing'Andre Moreira Magalhaes (andrunko)1-4/+15
Reviewed-by: Olli Salli (oggis) <olli.salli@collabora.co.uk>
2011-12-15cmake: Update FindDBusGlib.cmake to merge DBUS_GLIB_INCLUDE_DIR and ↵Andre Moreira Magalhaes (andrunko)1-2/+2
DBUS_GLIB_LOWLEVEL_INCLUDE_DIR into DBUS_GLIB_INCLUDE_DIRS.
2011-12-15cmake: Also export DBUS_GLIB_LOWLEVEL_INCLUDE_DIR so one can include ↵Andre Moreira Magalhaes (andrunko)1-0/+7
<dbus/dbus-glib-lowlevel.h>.
2011-12-15cmake: Fix FindDBusGLib.cmake to properly search for dbus-glib-1 instead of ↵Andre Moreira Magalhaes (andrunko)1-2/+6
dbus-glib.
2011-12-09install-cmake-files: Add macros for building version files, and for ↵Dario Freddi4-0/+71
installation of config files
2011-11-24Also set a Qt max version as Requires.private in pkg-config files.Andre Moreira Magalhaes (andrunko)1-0/+2
This is to avoid having TelepathyQt4.pc pick Qt5 instead of Qt4.
2011-11-24Generate libtelepathy-qt4 and libtelepathy-qt5 depending on the version of ↵Andre Moreira Magalhaes (andrunko)1-2/+2
Qt being used.
2011-11-24Properly pass moc flags, options to QT4/5_CREATE_MOC_COMMAND.Andre Moreira Magalhaes (andrunko)1-2/+2