From: Ralf Habacker Date: Wed, 19 Feb 2020 09:23:01 +0000 (+0100) Subject: cmake: complete adding version info to all installed executables on Windows X-Git-Tag: dbus-1.13.14~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d256d42ce21b7b628887436eab44c8ef8c2f475;p=thirdparty%2Fdbus.git cmake: complete adding version info to all installed executables on Windows --- diff --git a/bus/CMakeLists.txt b/bus/CMakeLists.txt index e4c00db00..84d86125f 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}) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 1a5a5709f..21efa98f0 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -97,13 +97,17 @@ endif() install(TARGETS dbus-launch ${INSTALL_TARGETS_DEFAULT_ARGS}) if(WIN32) - add_executable_version_info(dbus_launch_SOURCES "dbus-monitor") + add_executable_version_info(dbus_monitor_SOURCES "dbus-monitor") endif() add_executable(dbus-monitor ${dbus_monitor_SOURCES}) target_link_libraries(dbus-monitor ${DBUS_LIBRARIES}) install(TARGETS dbus-monitor ${INSTALL_TARGETS_DEFAULT_ARGS}) +if(WIN32) + add_executable_version_info(dbus_run_session_SOURCES "dbus-run-session") +endif() + 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})