diff options
-rw-r--r-- | tests/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/tst_utils.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1c5d318..fb77924 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,9 @@ find_package(GMock) +if(URLDISPATCHER_FOUND) + add_definitions( -DHAS_URLDISPATCHER ) +endif() + include_directories( ${CMAKE_SOURCE_DIR}/src ) diff --git a/tests/tst_utils.cpp b/tests/tst_utils.cpp index d7a4946..ac671f0 100644 --- a/tests/tst_utils.cpp +++ b/tests/tst_utils.cpp @@ -35,12 +35,14 @@ public: } }; +#ifdef HAS_URLDISPATCHER TEST_F(XdgCurrentDesktopUtilsTest, isLomiri) { EXPECT_FALSE(is_lomiri()); setenv("XDG_CURRENT_DESKTOP", "Lomiri", 1); EXPECT_TRUE(is_lomiri()); } +#endif TEST_F(XdgCurrentDesktopUtilsTest, isGnome) { |