diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-17 13:40:29 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-17 13:40:38 +0200 |
commit | b28e807d94462770765566ab0d879554da1f2b23 (patch) | |
tree | 4c8d60c1b1b52a5c2d4ade4237b5bd7622904a09 /CMakeLists.txt | |
parent | f6baadaffdb58ba27d585f67680bd7e6172f4444 (diff) | |
download | libayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.tar.gz libayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.tar.bz2 libayatana-indicator-b28e807d94462770765566ab0d879554da1f2b23.zip |
{,**/}CMakeLists.txt: Support builds against GTK+-3.0 with IDO support disabled.
Fixes https://github.com/AyatanaIndicators/libayatana-indicator/issues/37
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7444f8..2d4e85a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,30 +20,29 @@ endif() option(FLAVOUR_GTK2 "Build against GTK+-2.0" OFF) option(FLAVOUR_GTK3 "Build against GTK+-3.0" ON) +option(ENABLE_IDO "Enable IDO specific code" ON) + if (FLAVOUR_GTK2) set (FLAVOUR_GTK3 OFF) + set (ENABLE_IDO OFF) endif() if (FLAVOUR_GTK3) set (FLAVOUR_GTK2 OFF) endif() -if (FLAVOUR_GTK3) +set(DEPS + glib-2.0>=2.37 + gtk+-3.0>=3.24 + gmodule-2.0 + gio-unix-2.0 +) + +if (FLAVOUR_GTK3 AND ENABLE_IDO) set(DEPS - glib-2.0>=2.37 - gtk+-3.0>=3.24 - gmodule-2.0 - gio-unix-2.0 + ${DEPS} libayatana-ido3-0.4>=0.8.2 ) endif() -if (FLAVOUR_GTK2) - set(DEPS - glib-2.0>=2.37 - gtk+-2.0>=2.18 - gmodule-2.0 - gio-unix-2.0 - ) -endif() find_package (PkgConfig REQUIRED) pkg_check_modules(PROJECT_DEPS REQUIRED ${DEPS}) @@ -97,7 +96,7 @@ set (COVERAGE_TEST_EXECUTABLES "test-loader" ) -if(FLAVOUR_GTK3) +if(FLAVOUR_GTK3 AND ENABLE_IDO) set (COVERAGE_TEST_EXECUTABLES ${COVERAGE_TEST_EXECUTABLES} "test-indicator-ng" |