aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt27
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"