diff options
author | Robert Tari <robert@tari.in> | 2023-06-08 23:48:00 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2023-06-08 23:48:00 +0200 |
commit | 238d705cb7b04c53d7a510ba901682549b8a08c9 (patch) | |
tree | 1db2553ff556ce72097c1746c8eb25d09af534ab /CMakeLists.txt | |
parent | c20a21fa5806efb82bdd83d2024b7658a35f2efa (diff) | |
parent | 0ed3e1762249d7c1ab954e7fa16543bb16d58f60 (diff) | |
download | ayatana-indicator-power-238d705cb7b04c53d7a510ba901682549b8a08c9.tar.gz ayatana-indicator-power-238d705cb7b04c53d7a510ba901682549b8a08c9.tar.bz2 ayatana-indicator-power-238d705cb7b04c53d7a510ba901682549b8a08c9.zip |
Merge branch 'muhammad23012009-main'
Attributes GH PR #78: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/78
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a9ee67..18a9152 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ option(ENABLE_TESTS "Enable all tests and checks" OFF) option(ENABLE_COVERAGE "Enable coverage reports (includes enabling all tests and checks)" OFF) option(ENABLE_WERROR "Treat all build warnings as errors" OFF) option(ENABLE_LOMIRI_FEATURES "Build with Lomiri-specific libraries, schemas and media" OFF) +option(ENABLE_DEVICEINFO "Build with deviceinfo integration" OFF) if(ENABLE_COVERAGE) set(ENABLE_TESTS ON) @@ -91,6 +92,11 @@ endif () pkg_check_modules (SERVICE_DEPS REQUIRED ${SERVICE_DEPS}) include_directories (SYSTEM ${SERVICE_DEPS_INCLUDE_DIRS}) +if (ENABLE_DEVICEINFO) + pkg_check_modules (DEVICEINFO IMPORTED_TARGET "deviceinfo") + include_directories (${DEVICEINFO_INCLUDE_DIRS}) +endif () + ## ## custom targets ## |