summaryrefslogtreecommitdiff
path: root/bus/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Use project relative paths in CMake filesJordan Williams2022-07-251-2/+2
| | | | | | | This makes it possible for projects to incorporate D-Bus as a CMake sub-project in a larger CMake project. Before this PR, doing so would result in many errors. This is because CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR would point to directories above the D-Bus project. Using paths relative to the project directory, PROJECT_SOURCE_DIR and PROJECT_BINARY_DIR, corrects for this.
* cmake: Drop an unnecessary include directoryAlex Richardson2022-03-241-1/+0
| | | | | | | There should be no need to include the directory above the DBus sources, if that is actually required users can always pass -I flags to CMake. I noticed this because CLion started indexing all my cloned projects when I opened DBus due to this include path.
* cmake: make support for traditional activation optionalRalf Habacker2020-09-231-6/+9
| | | | | | | | Traditional activation is enabled/disabled with the cmake configure parameter -DENABLE_TRADITIONAL_ACTIVATION, which is enabled by default. This was added to the Autotools build system as part of dbus/dbus!107 but until now was not possible to disable when building with CMake.
* cmake: install dbus-daemon-launch-helper on UnixRalf Habacker2020-09-221-0/+4
| | | | | | | | | | | | | Previously it was built on Unix platforms, but not installed. This would prevent traditional activation on the system bus (on Linux without systemd or non-Linux, or for services without SystemdService), which requires the activation helper. Because the executable is an internal implementation detail of how traditional activation is implemented on Unix, it is not exported to the generated cmake support files. Resolves: dbus#310
* cmake: add support for user session semantic on Linux operating systemsRalf Habacker2020-06-101-0/+7
| | | | | | | | | | Systemd user support is controlled by the cmake variable ENABLE_USER_SESSION, which and WITH_SYSTEMD_USERUNITDIR to specify a custom installation location. If WITH_SYSTEMD_USERUNITDIR is not specified, the related install path is determined from an installed systemd package, if present. This was added to the Autotools build system as part of fd.o#61301, but until now was not possible to enable when building with CMake.
* cmake: Add support for systemd integration on Linux operating systemsRalf Habacker2020-06-101-0/+7
| | | | | | | | | | | | | | Previously, only the Autotools build system could do this. This commit includes most of the same features as in the Autotools build, although not the user-session semantics, which will be added separately. Systemd support is controlled by the cmake variable ENABLE_SYSTEMD, which can have the values OFF, ON and AUTO, the latter enabling support by default if the required libraries are available. With WITH_SYSTEMD_SYSTEMUNITDIR a custom installation location can be specified. If it is not specified, the related install path is determined from the installed systemd package, if present.
* cmake: Use CMAKE_INSTALL_FULL_<dir> for configuration and stateRalf Habacker2020-06-101-3/+3
| | | | | | | This means we apply GNUInstallDirs' various special cases when the prefix is /, /usr or something starting with /opt; these are not applied when installing to CMAKE_INSTALL_<dir>. See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html#special-cases
* cmake: fix installation of example filesRalf Habacker2020-06-101-10/+12
|
* cmake: complete adding version info to all installed executables on WindowsRalf Habacker2020-02-191-2/+6
|
* cmake: install missing files to keep in sync with autotools buildsRalf Habacker2019-03-131-0/+13
|
* Fixes remaining indentations that are not covered by the cmake formatting ↵Ralf Habacker2019-01-241-4/+4
| | | | script in CMakeLists.txt files
* Remove obsolete parameter in end... cmake keywordsRalf Habacker2019-01-241-7/+7
|
* Remove spaces between cmake command and opening bracketRalf Habacker2019-01-241-12/+12
|
* Use lower case cmake keywords in CMakeLists.txt filesRalf Habacker2019-01-241-16/+16
|
* Replace tabs by 4 spaces in CMakeLists.txt filesRalf Habacker2019-01-241-69/+69
|
* Remove trailing spaces in CMakeLists.txt filesRalf Habacker2019-01-241-29/+29
|
* Add cmake macros add_executable_version_info and add_library_version_infoRalf Habacker2019-01-221-10/+2
| | | | | | This helps to reduce duplicated code. Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* Move cmake related build system to top levelRalf Habacker2019-01-221-0/+203
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>