mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-15 02:10:29 +01:00
Link tests to test-utils-glib.c under CMake too
[Separated out from a larger commit -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88964 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
9806240b78
commit
b36747519a
1 changed files with 9 additions and 1 deletions
|
|
@ -72,6 +72,13 @@ add_test_executable(manual-tcp ${manual-tcp_SOURCES} ${DBUS_INTERNAL_LIBRARIES})
|
|||
|
||||
if(DBUS_WITH_GLIB)
|
||||
message(STATUS "with glib test apps")
|
||||
|
||||
add_library(dbus-testutils-glib STATIC
|
||||
${CMAKE_SOURCE_DIR}/../test/test-utils-glib.h
|
||||
${CMAKE_SOURCE_DIR}/../test/test-utils-glib.c
|
||||
)
|
||||
target_link_libraries(dbus-testutils-glib ${DBUS_INTERNAL_LIBRARIES})
|
||||
|
||||
add_definitions(
|
||||
${GLIB2_DEFINITIONS}
|
||||
${GOBJECT_DEFINITIONS}
|
||||
|
|
@ -80,7 +87,8 @@ if(DBUS_WITH_GLIB)
|
|||
${GLIB2_INCLUDE_DIR}
|
||||
${GOBJECT_INCLUDE_DIR}
|
||||
)
|
||||
set(TEST_LIBRARIES ${DBUS_INTERNAL_LIBRARIES} dbus-testutils ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES})
|
||||
|
||||
set(TEST_LIBRARIES ${DBUS_INTERNAL_LIBRARIES} dbus-testutils dbus-testutils-glib ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES})
|
||||
|
||||
add_test_executable(test-corrupt ${CMAKE_SOURCE_DIR}/../test/corrupt.c ${TEST_LIBRARIES})
|
||||
add_test_executable(test-dbus-daemon ${CMAKE_SOURCE_DIR}/../test/dbus-daemon.c ${TEST_LIBRARIES})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue