diff options
Diffstat (limited to 'tdm/CMakeLists.txt')
-rw-r--r-- | tdm/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdm/CMakeLists.txt b/tdm/CMakeLists.txt index ce8a1f4ed..4d37df766 100644 --- a/tdm/CMakeLists.txt +++ b/tdm/CMakeLists.txt @@ -22,3 +22,9 @@ include( ConfigureChecks.cmake ) add_subdirectory( backend ) add_subdirectory( kfrontend ) add_subdirectory( cryptocardwatcher ) + +# 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( ) |