diff --git a/CMakeLists.txt b/CMakeLists.txt index 965f86b..c86d18d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,18 +39,18 @@ if (Qt5Core_FOUND) else() if(UNIX AND NOT APPLE) find_package(Qt4 COMPONENTS QtCore QtDBus REQUIRED) + set(QTDBUS_LIBRARIES ${QT_QTDBUS_LIBRARY}) macro(qt_add_dbus_interface) qt4_add_dbus_interface(${ARGN}) endmacro() - macro(qt_wrap_cpp) - qt4_wrap_cpp(${ARGN}) - endmacro() - set(QTDBUS_LIBRARIES ${QT_QTDBUS_LIBRARY}) else() find_package(Qt4 COMPONENTS QtCore REQUIRED) endif() include_directories(${QT_INCLUDES}) set(QTCORE_LIBRARIES ${QT_QTCORE_LIBRARY}) + macro(qt_wrap_cpp) + qt4_wrap_cpp(${ARGN}) + endmacro() endif()