On systems we run against Mir we also need to build against it

This commit is contained in:
Simon Fels 2017-01-26 07:36:53 +01:00
commit 53b8071e6a
3 changed files with 21 additions and 2 deletions

View file

@ -67,6 +67,10 @@ pkg_check_modules(SDL2 sdl2 REQUIRED)
pkg_check_modules(DBUS_CPP dbus-cpp REQUIRED)
pkg_check_modules(DBUS dbus-1 REQUIRED)
pkg_check_modules(LXC lxc REQUIRED)
pkg_check_modules(MIRCLIENT mirclient)
if (MIRCLIENT_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMIR_SUPPORT")
endif()
#####################################################################
# Enable code coverage calculation with gcov/gcovr/lcov