summaryrefslogtreecommitdiffstats
path: root/tdm/CMakeLists.txt
blob: 692e96e880e52e88c40186c73485dfeba0a866f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

# FIXME initial work, only PAM
# FIXME needs more checks (for kerberos, etc)
# FIXME Xsession need some improvements

if( NOT DEFINED TDM_PAM_SERVICE )
  set( TDM_PAM_SERVICE "kde" CACHE INTERNAL "" )
endif( )

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( )