Ed tanous | 7d95f5f | 2018-03-23 00:19:20 -0700 | [diff] [blame^] | 1 | include(FeatureSummary) |
| 2 | set_package_properties(Systemd PROPERTIES |
| 3 | URL "http://freedesktop.org/wiki/Software/systemd/" |
| 4 | DESCRIPTION "System and Service Manager") |
| 5 | |
| 6 | find_package(PkgConfig) |
| 7 | pkg_check_modules(PC_SYSTEMD libsystemd) |
| 8 | find_library(SYSTEMD_LIBRARIES NAMES systemd ${PC_SYSTEMD_LIBRARY_DIRS}) |
| 9 | find_path(SYSTEMD_INCLUDE_DIRS systemd/sd-login.h HINTS ${PC_SYSTEMD_INCLUDE_DIRS}) |
| 10 | |
| 11 | set(SYSTEMD_DEFINITIONS ${PC_SYSTEMD_CFLAGS_OTHER}) |
| 12 | |
| 13 | include(FindPackageHandleStandardArgs) |
| 14 | find_package_handle_standard_args(SYSTEMD DEFAULT_MSG SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) |
| 15 | mark_as_advanced(SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES SYSTEMD_DEFINITIONS) |