Commit f88ca3b8 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

cmake: build and install dbus-uuidgen on non Windows platforms

parent 681efdde
......@@ -61,6 +61,7 @@ set(DBUS_LIB_SOURCES
if(UNIX)
set(DBUS_LIB_SOURCES ${DBUS_LIB_SOURCES}
dbus-uuidgen.c
dbus-transport-unix.c
dbus-server-unix.c
)
......@@ -95,6 +96,7 @@ set(DBUS_LIB_HEADERS
dbus-threads-internal.h
dbus-transport.h
dbus-transport-protected.h
dbus-uuidgen.h
dbus-watch.h
${CMAKE_BINARY_DIR}/config.h
)
......
......@@ -59,6 +59,10 @@ set(dbus_run_session_SOURCES
dbus-run-session.c
)
set(dbus_uuidgen_SOURCES
dbus-uuidgen.c
)
if(WIN32)
add_executable_version_info(dbus_send_SOURCES "dbus-send")
endif()
......@@ -112,6 +116,12 @@ add_executable(dbus-run-session ${dbus_run_session_SOURCES})
target_link_libraries(dbus-run-session ${DBUS_INTERNAL_LIBRARIES})
install(TARGETS dbus-run-session ${INSTALL_TARGETS_DEFAULT_ARGS})
if(NOT WIN32)
add_executable(dbus-uuidgen ${dbus_uuidgen_SOURCES})
target_link_libraries(dbus-uuidgen ${DBUS_LIBRARIES})
install(TARGETS dbus-uuidgen ${INSTALL_TARGETS_DEFAULT_ARGS})
endif()
# create the /var/lib/dbus directory for dbus-uuidgen
install(DIRECTORY DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}/lib/dbus)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment