summaryrefslogtreecommitdiffstats
path: root/tdm/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/CMakeLists.txt')
-rw-r--r--tdm/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdm/CMakeLists.txt b/tdm/CMakeLists.txt
index 08096f84c..692e96e88 100644
--- a/tdm/CMakeLists.txt
+++ b/tdm/CMakeLists.txt
@@ -21,3 +21,9 @@ include( ConfigureChecks.cmake )
add_subdirectory( backend )
add_subdirectory( kfrontend )
+
+# systemd
+if( BUILD_TDM_SYSTEMD_UNIT_FILE AND NOT "${SYSTEMDSYSTEMUNITDIR}" STREQUAL "" )
+ configure_file( "${TDM_SERVICE_FILE_TEMPLATE}" tdm.service @ONLY )
+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/tdm.service" DESTINATION ${SYSTEMDSYSTEMUNITDIR} )
+endif( )