summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bus/CMakeLists.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/bus/CMakeLists.txt b/bus/CMakeLists.txt
index 84d86125..f56bbb85 100644
--- a/bus/CMakeLists.txt
+++ b/bus/CMakeLists.txt
@@ -154,19 +154,21 @@ if(MSVC)
project_source_group(${GROUP_CODE} bus_test_SOURCES dummy)
endif()
-configure_file(example-session-disable-stats.conf.in ${CMAKE_CURRENT_BINARY_DIR}/example-session-disable-stats.conf)
-set(EXAMPLES_DATA
- ${CMAKE_CURRENT_BINARY_DIR}/example-session-disable-stats.conf
-)
+macro(install_example_in_file a)
+ configure_file(${a}.in ${CMAKE_CURRENT_BINARY_DIR}/${a})
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${a} DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus/examples)
+endmacro()
+
+macro(install_example_file a)
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${a} DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus/examples)
+endmacro()
+
+install_example_in_file(example-session-disable-stats.conf)
if(NOT WIN32)
- configure_file(example-system-enable-stats.conf.in ${CMAKE_CURRENT_BINARY_DIR}/example-system-enable-stats.conf)
- list(APPEND EXAMPLES_DATA
- ${CMAKE_CURRENT_BINARY_DIR}/example-system-enable-stats.conf
- )
+ install_example_in_file(example-system-enable-stats.conf)
+ install_example_file(example-system-hardening-without-traditional-activation.conf)
endif()
-install(FILES ${EXAMPLES_DATA} DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus/examples)
-
## mop up the gcov files
#clean-local:
# /bin/rm *.bb *.bbg *.da *.gcov || true