qt5base-lts/tests/auto/dbus/qdbusabstractinterface/CMakeLists.txt
Albert Astals Cid e2dc030ac0 cmake: test: Enable the build of qdbusabstractinterface
Since the code wants pinger_interface.h as include
name and the qt_create_qdbusxml2cpp_command function was
using the filename as source for the next filename i introduced
a new option DBUS_ADAPTOR_BASENAME/DBUS_INTERFACE_BASENAME to set the
name of the resulting file

Change-Id: I582d578b68275e4530e91a88631ae43fd1ae06fd
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-01-30 16:15:08 +00:00

22 lines
447 B
CMake

# Generated from qdbusabstractinterface.pro.
add_subdirectory(qpinger)
add_qt_test(tst_qdbusabstractinterface
SOURCES
interface.cpp
tst_qdbusabstractinterface.cpp
LIBRARIES
Qt::Core
Qt::DBus
)
extend_target(tst_qdbusabstractinterface
DBUS_INTERFACE_SOURCES
org.qtproject.QtDBus.Pinger.xml
DBUS_INTERFACE_BASENAME
pinger_interface
DBUS_INTERFACE_FLAGS
-i interface.h
)