~nick-dedekind/libdbusmenu-qt/qpaexporter

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Nick Dedekind
  • Date: 2015-02-23 14:32:47 UTC
  • Revision ID: nick.dedekind@canonical.com-20150223143247-aqg300t1ypet6fos
more qpa exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    endif()
35
35
endif()
36
36
 
 
37
find_package(PkgConfig)
37
38
# Detect for which Qt version we're building
38
39
if (USE_QT5)
39
40
    find_package(Qt5Widgets REQUIRED)
40
41
    find_package(Qt5DBus REQUIRED)
41
42
    find_package(Qt5Gui REQUIRED)
 
43
    pkg_check_modules(DBUS_CPP dbus-cpp REQUIRED)
42
44
 
43
 
    include_directories(${Qt5Widgets_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS} ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
 
45
    include_directories(
 
46
        ${Qt5Widgets_INCLUDE_DIRS}
 
47
        ${Qt5DBus_INCLUDE_DIRS}
 
48
        ${Qt5DBus_PRIVATE_INCLUDE_DIRS}
 
49
        ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
 
50
        ${DBUS_CPP_INCLUDE_DIRS}
 
51
    )
44
52
    find_package(Qt5Core REQUIRED)
45
53
    set(CMAKE_AUTOMOC ON)
46
54
    set(CMAKE_AUTOMOC_RELAXED_MODE ON)