summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2020-02-19 10:23:01 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2020-02-19 10:23:01 +0100
commit2d256d42ce21b7b628887436eab44c8ef8c2f475 (patch)
treeda62dc9acfedfbf77af783a61fe385bd99b8d76e /bus
parentbfad7898cc59351f023a86ec0d7db8809c867438 (diff)
downloaddbus-2d256d42ce21b7b628887436eab44c8ef8c2f475.tar.gz
cmake: complete adding version info to all installed executables on Windows
Diffstat (limited to 'bus')
-rw-r--r--bus/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/bus/CMakeLists.txt b/bus/CMakeLists.txt
index e4c00db0..84d86125 100644
--- a/bus/CMakeLists.txt
+++ b/bus/CMakeLists.txt
@@ -89,14 +89,18 @@ include_directories(
${EXPAT_INCLUDE_DIR}
)
+set(DBUS_DAEMON_SOURCES
+ main.c
+)
+
if(WIN32)
- add_executable_version_info(BUS_SOURCES "dbus-daemon")
+ add_executable_version_info(DBUS_DAEMON_SOURCES "dbus-daemon")
endif()
add_library(dbus-daemon-internal STATIC ${BUS_SOURCES})
target_link_libraries(dbus-daemon-internal ${DBUS_INTERNAL_LIBRARIES} ${EXPAT_LIBRARIES})
-add_executable(dbus-daemon main.c)
+add_executable(dbus-daemon ${DBUS_DAEMON_SOURCES})
target_link_libraries(dbus-daemon dbus-daemon-internal)
set_target_properties(dbus-daemon PROPERTIES OUTPUT_NAME ${DBUS_DAEMON_NAME})
set_target_properties(dbus-daemon PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIENT_DEFINITIONS})